From: Syam Sidhardhan Date: Tue, 26 Feb 2013 19:46:56 +0000 (+0530) Subject: mtd: maps: Remove redundant NULL check before kfree X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=8be84e035c3f585f22f87034b41324681cf5c3ad;p=linux-edison.git mtd: maps: Remove redundant NULL check before kfree kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c index 586a1c77e48..0455166f05f 100644 --- a/drivers/mtd/maps/ck804xrom.c +++ b/drivers/mtd/maps/ck804xrom.c @@ -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)) {