diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-16 14:08:13 +0100 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2021-04-06 22:17:53 +0200 |
commit | f22c8d317a465c0040e5d1d334c72fe36a6ae9d9 (patch) | |
tree | 9f31f5004670d52a4858cd5efb764ffb117cf773 /drivers/soc | |
parent | soc: fsl: qbman: Ensure device cleanup is run for kexec (diff) | |
download | linux-f22c8d317a465c0040e5d1d334c72fe36a6ae9d9.tar.xz linux-f22c8d317a465c0040e5d1d334c72fe36a6ae9d9.zip |
soc: fsl: qbman: Delete useless kfree code
The parameter of kfree function is NULL, so kfree code is useless, delete it.
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/fsl/qbman/bman.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qbman/bman.c b/drivers/soc/fsl/qbman/bman.c index c5dd026fe889..6cc1847e534a 100644 --- a/drivers/soc/fsl/qbman/bman.c +++ b/drivers/soc/fsl/qbman/bman.c @@ -709,7 +709,6 @@ struct bman_pool *bman_new_pool(void) return pool; err: bm_release_bpid(bpid); - kfree(pool); return NULL; } EXPORT_SYMBOL(bman_new_pool); |