Skip to contentSkip to conversation

rtc/m48t59: redundant condition judgement

PATCH New Wan ZongShun 1 participant 1 message Jun 4, 2010 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc/m48t59: redundant condition judgement

It is safe to deallocate a NULL pointer. so 'if (m48t59)' is redundant condition judgement, so I remove it.

---
 drivers/rtc/rtc-m48t59.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/rtc/rtc-m48t59.c +0 -1
index be8359f..0b66455 100644
@@ -506,7 +506,6 @@ out:
 		free_irq(m48t59->irq, &pdev->dev);
 	if (m48t59->ioaddr)
 		iounmap(m48t59->ioaddr);
-	if (m48t59)
 		kfree(m48t59);
 	return ret;
 }
Signature · 1 line
1.6.3.3