Commit 63898ab5 authored by Ding Xiang's avatar Ding Xiang Committed by Richard Weinberger

mtd: afs: remove unneeded NULL check

NULL check before kfree is unneeded, so remove it.
Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 1d2af80d
......@@ -371,7 +371,6 @@ static int parse_afs_partitions(struct mtd_info *mtd,
out_free_parts:
while (i >= 0) {
if (parts[i].name)
kfree(parts[i].name);
i--;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment