diff mbox series

[-next] soc: fsl: qbman: Delete useless kfree code

Message ID 20201216130813.14087-1-zhengyongjun3@huawei.com
State New
Headers show
Series [-next] soc: fsl: qbman: Delete useless kfree code | expand

Commit Message

Zheng Yongjun Dec. 16, 2020, 1:08 p.m. UTC
The parameter of kfree function is NULL, so kfree code is useless, delete it.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
---
 drivers/soc/fsl/qbman/bman.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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);