summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorZheng Yongjun <zhengyongjun3@huawei.com>2020-12-16 14:08:13 +0100
committerLi Yang <leoyang.li@nxp.com>2021-04-06 22:17:53 +0200
commitf22c8d317a465c0040e5d1d334c72fe36a6ae9d9 (patch)
tree9f31f5004670d52a4858cd5efb764ffb117cf773 /drivers/soc
parentsoc: fsl: qbman: Ensure device cleanup is run for kexec (diff)
downloadlinux-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.c1
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);