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@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Zheng Yongjun 2020-12-16 21:07:28 +08:00 committed by Richard Weinberger
parent cf0838dfa3
commit 3b638f997a

View file

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