Skip to contentSkip to conversation

rtc: remove set but not used variable 'np'

PATCH RESEND New Qiujun Huang 1 participant 1 message Mar 23, 2020 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 rtc: remove set but not used variable 'np'

drivers/rtc/rtc-fsl-ftm-alarm.c: In function ‘ftm_rtc_probe’:
drivers/rtc/rtc-fsl-ftm-alarm.c:246:22: warning: unused variable ‘np’ [-Wunused-variable]

	struct device_node *np = pdev->dev.of_node;

commit cd49b579e705 ("rtc: fsl-ftm-alarm: enable acpi support") involved this unused variable, remove it.

---
 drivers/rtc/rtc-fsl-ftm-alarm.c | 1 -
 1 file changed, 1 deletion(-)
drivers/rtc/rtc-fsl-ftm-alarm.c +0 -1
index c572044..0f4142b 100644
@@ -243,7 +243,6 @@ static int ftm_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
 
 static int ftm_rtc_probe(struct platform_device *pdev)
 {
-	struct device_node *np = pdev->dev.of_node;
 	int irq;
 	int ret;
 	struct ftm_rtc *rtc;
Signature · 1 line
1.8.3.1