summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZheng Yongjun <zhengyongjun3@huawei.com>2020-12-16 21:08:13 +0800
committerLi Yang <leoyang.li@nxp.com>2021-04-06 15:17:53 -0500
commitf22c8d317a465c0040e5d1d334c72fe36a6ae9d9 (patch)
tree9f31f5004670d52a4858cd5efb764ffb117cf773
parentc4e38b2a27a852ed1507163a9cc5b3a9d2a2da97 (diff)
downloadlinux-f22c8d317a465c0040e5d1d334c72fe36a6ae9d9.tar.bz2
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>
-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);