aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian King2020-03-02 08:39:21 -0600
committerMartin K. Petersen2020-03-11 23:07:57 -0400
commitb893eb0141cb4b896b275d00bea2deb64f6f1eac (patch)
tree22a0b6a331bf69ddb4af4601d0fb980ef56a0f1f
parent5848fe960b080b1e731b467b6e026de841c65234 (diff)
scsi: ibmvfc: Fix NULL return compiler warning
Fix up a compiler warning introduced via 54b04c99d02e Link: https://lore.kernel.org/r/1583159961-15903-1-git-send-email-brking@linux.vnet.ibm.com Fixes: 54b04c99d02e ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot") Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/ibmvscsi/ibmvfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c
index 84dd8c5145c8..7da9e060b270 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,