[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201216130728.14034-1-zhengyongjun3@huawei.com>
Date: Wed, 16 Dec 2020 21:07:28 +0800
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <miquel.raynal@...tlin.com>, <vigneshr@...com>,
<linux-mtd@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
CC: Zheng Yongjun <zhengyongjun3@...wei.com>
Subject: [PATCH -next] ubi: eba: Delete useless kfree code
The parameter of kfree function is NULL, so kfree code is useless, delete it.
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
drivers/mtd/ubi/eba.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 0edecfdbd01f..9c2840ffd2e9 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -142,7 +142,6 @@ struct ubi_eba_table *ubi_eba_create_table(struct ubi_volume *vol,
return tbl;
err:
- kfree(tbl->entries);
kfree(tbl);
return ERR_PTR(err);
--
2.22.0
Powered by blists - more mailing lists