From: Wan ZongShun Date: Wed, 11 Aug 2010 01:02:09 +0000 (-0700) Subject: rtc/m48t59: kfree(NULL) is OK X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4faf896c5e860b55b7444976225ff5ba85c0b286;p=linux-beck.git rtc/m48t59: kfree(NULL) is OK Signed-off-by: Wan ZongShun Cc: Alessandro Zummo Cc: Paul Gortmaker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index be8359fdb65a..0b6645509c86 100644 --- a/drivers/rtc/rtc-m48t59.c +++ b/drivers/rtc/rtc-m48t59.c @@ -506,7 +506,6 @@ out: free_irq(m48t59->irq, &pdev->dev); if (m48t59->ioaddr) iounmap(m48t59->ioaddr); - if (m48t59) kfree(m48t59); return ret; }