diff mbox series

ibmvfc: Fix NULL return compiler warning

Message ID 1583159961-15903-1-git-send-email-brking@linux.vnet.ibm.com (mailing list archive)
State Mainlined
Commit b893eb0141cb4b896b275d00bea2deb64f6f1eac
Headers show
Series ibmvfc: Fix NULL return compiler warning | expand

Commit Message

Brian King March 2, 2020, 2:39 p.m. UTC
Fix up a compiler warning introduced via 54b04c99d02e

Fixes: 54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---
 drivers/scsi/ibmvscsi/ibmvfc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin K. Petersen March 10, 2020, 10:53 p.m. UTC | #1
Brian,

> Fix up a compiler warning introduced via 54b04c99d02e

Applied to 5.7/scsi-queue, thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c
index 84dd8c5..7da9e06 100644
--- a/drivers/scsi/ibmvscsi/ibmvfc.c
+++ b/drivers/scsi/ibmvscsi/ibmvfc.c
@@ -3641,7 +3641,7 @@  static void ibmvfc_tgt_implicit_logout_and_del(struct ibmvfc_target *tgt)
 	struct ibmvfc_event *evt;
 
 	if (vhost->discovery_threads >= disc_threads)
-		return NULL;
+		return;
 
 	vhost->discovery_threads++;
 	evt = __ibmvfc_tgt_get_implicit_logout_evt(tgt,