Message ID | 20181110224451.GA23585@lkp-ne04 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | vfio/pci: fix ptr_ret.cocci warnings | expand |
--- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -1393,7 +1393,7 @@ static int vfio_pci_reflck_attach(struct mutex_unlock(&reflck_lock); - return IS_ERR(vdev->reflck) ? PTR_ERR(vdev->reflck) : 0; + return PTR_ERR_OR_ZERO(vdev->reflck); } static void vfio_pci_reflck_release(struct kref *kref)