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:
Thomas Meyer 2018-12-02 21:52:11 +01:00 committed by Martin K. Petersen
parent 19c0507252
commit f3e46ac47e

View File

@ -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);
}
/*