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

Commit 8be84e03 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by David Woodhouse
Browse files

mtd: maps: Remove redundant NULL check before kfree



kfree on NULL pointer is a no-op.

Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 89134055
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -308,7 +308,6 @@ static int ck804xrom_init_one(struct pci_dev *pdev,

 out:
	/* Free any left over map structures */
	if (map)
	kfree(map);

	/* See if I have any map structures */