mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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: YueHaibing <yuehaibing@huawei.com> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
9e5470fe2d
commit
70a51d8c53
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue