diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-04-03 17:50:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:21:24 -0400 |
commit | 0d71915d27a6bfd896513c5aa3bae4a09ca81c2c (patch) | |
tree | 689745e59ebd5203eede1033cd2bce42bd9e0f91 /drivers/rtc/rtc-ds1511.c | |
parent | ebe753357ecd10a6dc521dc89f2bfea6c0ee0ca2 (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-ds1511.c')
-rw-r--r-- | drivers/rtc/rtc-ds1511.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c index 4ff20f9dc212..b13d1399b81a 100644 --- a/drivers/rtc/rtc-ds1511.c +++ b/drivers/rtc/rtc-ds1511.c | |||
@@ -371,8 +371,7 @@ ds1511_interrupt(int irq, void *dev_id) | |||
371 | events |= RTC_UF; | 371 | events |= RTC_UF; |
372 | else | 372 | else |
373 | events |= RTC_AF; | 373 | events |= RTC_AF; |
374 | if (likely(pdata->rtc)) | 374 | rtc_update_irq(pdata->rtc, 1, events); |
375 | rtc_update_irq(pdata->rtc, 1, events); | ||
376 | } | 375 | } |
377 | spin_unlock(&pdata->lock); | 376 | spin_unlock(&pdata->lock); |
378 | return events ? IRQ_HANDLED : IRQ_NONE; | 377 | return events ? IRQ_HANDLED : IRQ_NONE; |