mirror of https://gitee.com/openkylin/linux.git
scsi: qedf: NULL check before some freeing functions is not needed
NULL check before some freeing functions is not needed. Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Acked-by: Manish Rangankar <Manish.Rangankar@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
19c0507252
commit
f3e46ac47e
|
@ -2935,8 +2935,7 @@ static void qedf_free_fcoe_pf_param(struct qedf_ctx *qedf)
|
|||
|
||||
qedf_free_global_queues(qedf);
|
||||
|
||||
if (qedf->global_queues)
|
||||
kfree(qedf->global_queues);
|
||||
kfree(qedf->global_queues);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue