Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d71915d authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Linus Torvalds
Browse files

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ebe75335
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -371,7 +371,6 @@ ds1511_interrupt(int irq, void *dev_id)
			events |= RTC_UF;
		else
			events |= RTC_AF;
		if (likely(pdata->rtc))
		rtc_update_irq(pdata->rtc, 1, events);
	}
	spin_unlock(&pdata->lock);
+1 −2
Original line number Diff line number Diff line
@@ -206,7 +206,6 @@ static irqreturn_t ds1553_rtc_interrupt(int irq, void *dev_id)
			events |= RTC_UF;
		else
			events |= RTC_AF;
		if (likely(pdata->rtc))
		rtc_update_irq(pdata->rtc, 1, events);
	}
	spin_unlock(&pdata->lock);
+1 −2
Original line number Diff line number Diff line
@@ -214,7 +214,6 @@ static irqreturn_t stk17ta8_rtc_interrupt(int irq, void *dev_id)
			events |= RTC_UF;
		else
			events |= RTC_AF;
		if (likely(pdata->rtc))
		rtc_update_irq(pdata->rtc, 1, events);
	}
	spin_unlock(&pdata->lock);
+2 −2
Original line number Diff line number Diff line
@@ -176,8 +176,8 @@ static irqreturn_t tx4939_rtc_interrupt(int irq, void *dev_id)
		tx4939_rtc_cmd(rtcreg, TX4939_RTCCTL_COMMAND_NOP);
	}
	spin_unlock(&pdata->lock);
	if (likely(pdata->rtc))
	rtc_update_irq(pdata->rtc, 1, events);

	return IRQ_HANDLED;
}