Commit 70a51d8c authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen

scsi: lpfc: Remove unnecessary null check before kfree

A null check before a kfree is redundant, so remove it.  This is detected
by coccinelle.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 9e5470fe
......@@ -1276,9 +1276,7 @@ lpfc_bsg_hba_set_event(struct bsg_job *job)
return 0; /* call job done later */
job_error:
if (dd_data != NULL)
kfree(dd_data);
kfree(dd_data);
job->dd_data = NULL;
return rc;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment