rtc/m48t59: kfree(NULL) is OK

Signed-off-by: Wan ZongShun <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Paul Gortmaker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Wan ZongShun 2010-08-10 18:02:09 -07:00 • committed by Linus Torvalds
commit 4faf896c5e

View file

@ -506,7 +506,6 @@ out:
free_irq(m48t59->irq, &pdev->dev);
if (m48t59->ioaddr)
iounmap(m48t59->ioaddr);
if (m48t59)
kfree(m48t59);
return ret;
}