scsi: libfc: Remove unnecessary NULL check.
Subsystems (2)
PATCH 1/1 scsi: libfc: Remove unnecessary NULL check.
sp is a result of shifting after dereference, so it is never NULL. Thus, remove unnecessary NULL check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes 42e9a92fe6a9 ("[SCSI] libfc: A modular Fibre Channel library")
Signed-off-by Daniil Dulov <[email protected]>
--- drivers/scsi/libfc/fc_exch.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/libfc/fc_exch.c +0 -2
@@ -650,8 +650,6 @@ static int fc_exch_abort_locked(struct fc_exch *ep,* Send the abort on a new sequence if possible. */ sp =fc_seq_start_next_locked (&ep->seq); -if (!sp) -return -ENOMEM ;if (timer_msec)fc_exch_timer_set_locked (ep, timer_msec);
Signature · 1 line
2.25.1