aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-tx4939.c
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-04-03 17:50:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-03 19:21:24 -0400
commit0d71915d27a6bfd896513c5aa3bae4a09ca81c2c (patch)
tree689745e59ebd5203eede1033cd2bce42bd9e0f91 /drivers/rtc/rtc-tx4939.c
parentebe753357ecd10a6dc521dc89f2bfea6c0ee0ca2 (diff)
rtc: treewide: remove excess rtc_device validation
The patch "rtc: verify a critical argument to rtc_update_irq() before using it" introduces validation for rtc_device in the RTC core, so there are no need to check this argument for rtc_update_irq() from the drivers. This patch removes such check for the existing rtc_update_irq() users. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-tx4939.c')
-rw-r--r--drivers/rtc/rtc-tx4939.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c
index 4f87234e0dee..2e678c681b13 100644
--- a/drivers/rtc/rtc-tx4939.c
+++ b/drivers/rtc/rtc-tx4939.c
@@ -176,8 +176,8 @@ static irqreturn_t tx4939_rtc_interrupt(int irq, void *dev_id)
176 tx4939_rtc_cmd(rtcreg, TX4939_RTCCTL_COMMAND_NOP); 176 tx4939_rtc_cmd(rtcreg, TX4939_RTCCTL_COMMAND_NOP);
177 } 177 }
178 spin_unlock(&pdata->lock); 178 spin_unlock(&pdata->lock);
179 if (likely(pdata->rtc)) 179 rtc_update_irq(pdata->rtc, 1, events);
180 rtc_update_irq(pdata->rtc, 1, events); 180
181 return IRQ_HANDLED; 181 return IRQ_HANDLED;
182} 182}
183 183