mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
scsi: lpfc: Remove unnnecessary NULL check
The "evt_dat" variale is non-NULL at this point so there is no need to check. Delete the check and pull the code in a tab. Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Paul Ely <paul.ely@broadcom.com> Link: https://patch.msgid.link/an1trOAUeQmYEus_@stanley.mountain Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
committed by
Martin K. Petersen (Oracle)
parent
11e48f5201
commit
0ec418204f
@@ -1329,10 +1329,8 @@ lpfc_bsg_hba_get_event(struct bsg_job *job)
|
||||
else
|
||||
bsg_reply->reply_payload_rcv_len = 0;
|
||||
|
||||
if (evt_dat) {
|
||||
kfree(evt_dat->data);
|
||||
kfree(evt_dat);
|
||||
}
|
||||
kfree(evt_dat->data);
|
||||
kfree(evt_dat);
|
||||
|
||||
spin_lock_irqsave(&phba->ct_ev_lock, flags);
|
||||
lpfc_bsg_event_unref(evt);
|
||||
|
||||
Reference in New Issue
Block a user