forked from luck/tmp_suning_uos_patched
rtc/m48t59: kfree(NULL) is OK
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Gortmaker <p_gortmaker@yahoo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a5737cb515
commit
4faf896c5e
|
@ -506,7 +506,6 @@ static int __devinit m48t59_rtc_probe(struct platform_device *pdev)
|
|||
free_irq(m48t59->irq, &pdev->dev);
|
||||
if (m48t59->ioaddr)
|
||||
iounmap(m48t59->ioaddr);
|
||||
if (m48t59)
|
||||
kfree(m48t59);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user