Skip to contentSkip to conversation

ibmvfc: Fix NULL return compiler warning

PATCH Applied Brian King 2 participants 2 messages Mar 2, 2020 – Mar 10, 2020

Subsystems (3)
lore
Share & tools
lore

Brian King

author
#0 lore raw

PATCH 1/1 ibmvfc: Fix NULL return compiler warning

Fix up a compiler warning introduced via 54b04c99d02e

Fixes 54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")
---
 drivers/scsi/ibmvscsi/ibmvfc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/ibmvscsi/ibmvfc.c +1 -1
index 84dd8c5..7da9e06 100644
@@ -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,
Signature · 1 line
1.8.3.1
#1 lore raw

Brian,

Quoted 1 line

Fix up a compiler warning introduced via 54b04c99d02e

Applied to 5.7/scsi-queue, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering