mirror of https://gitee.com/openkylin/linux.git
mtd: afs: remove unneeded NULL check
NULL check before kfree is unneeded, so remove it. Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
1d2af80d58
commit
63898ab515
|
@ -371,8 +371,7 @@ static int parse_afs_partitions(struct mtd_info *mtd,
|
|||
|
||||
out_free_parts:
|
||||
while (i >= 0) {
|
||||
if (parts[i].name)
|
||||
kfree(parts[i].name);
|
||||
kfree(parts[i].name);
|
||||
i--;
|
||||
}
|
||||
kfree(parts);
|
||||
|
|
Loading…
Reference in New Issue