Skip to content

Commit

Permalink
scsi: ibmvfc: Fix NULL return compiler warning
Browse files Browse the repository at this point in the history
Fix up a compiler warning introduced via 54b04c9

Link: https://lore.kernel.org/r/[email protected]
Fixes: 54b04c9 ("scsi: ibmvfc: Avoid loss of all paths during SVC node reboot")
Signed-off-by: Brian King <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
bjking1 authored and martinkpetersen committed Mar 12, 2020
1 parent 5848fe9 commit b893eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/ibmvscsi/ibmvfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b893eb0

Please sign in to comment.