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:
parent
8913405593
commit
8be84e035c
|
@ -308,8 +308,7 @@ static int ck804xrom_init_one(struct pci_dev *pdev,
|
|||
|
||||
out:
|
||||
/* Free any left over map structures */
|
||||
if (map)
|
||||
kfree(map);
|
||||
kfree(map);
|
||||
|
||||
/* See if I have any map structures */
|
||||
if (list_empty(&window->maps)) {
|
||||
|
|
Loading…
Reference in New Issue