diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2018-12-02 21:52:11 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-12-07 21:46:46 -0500 |
commit | f3e46ac47e42df29db99e331ad8f39f34789d4e4 (patch) | |
tree | ccee00ebbdc4bb479662d0c2e0c447e1a9428fed /drivers/scsi/qedf | |
parent | 19c0507252c977ba8b3d2e2fe99afd2c176a993b (diff) | |
download | linux-f3e46ac47e42df29db99e331ad8f39f34789d4e4.tar.bz2 |
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>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index d5a4f17fce51..12e6e5dfae6e 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -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); } /* |