From c795d1550929d2bdcebe947e08e7597ff42e193c Mon Sep 17 00:00:00 2001 From: Syam Sidhardhan Date: Wed, 27 Feb 2013 01:16:56 +0530 Subject: [PATCH] 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 --- drivers/mtd/maps/ck804xrom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/maps/ck804xrom.c b/drivers/mtd/maps/ck804xrom.c index 586a1c77e48a..0455166f05fa 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)) { -- 2.39.5