Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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--;
	}