mtd: maps: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
Syam Sidhardhan 2013-02-27 01:16:56 +05:30 committed by David Woodhouse
parent 8913405593
commit 8be84e035c
1 changed files with 1 additions and 2 deletions

View File

@ -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 */