* [PATCH RESEND -next] rtc: remove set but not used variable 'np'
@ 2020-03-23 17:03 Qiujun Huang
0 siblings, 0 replies; only message in thread
From: Qiujun Huang @ 2020-03-23 17:03 UTC (permalink / raw)
To: a.zummo, alexandre.belloni; +Cc: linux-rtc, linux-kernel, Qiujun Huang
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.
Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
---
drivers/rtc/rtc-fsl-ftm-alarm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl-ftm-alarm.c
index c572044..0f4142b 100644
--- a/drivers/rtc/rtc-fsl-ftm-alarm.c
+++ b/drivers/rtc/rtc-fsl-ftm-alarm.c
@@ -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;
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-23 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 17:03 [PATCH RESEND -next] rtc: remove set but not used variable 'np' Qiujun Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).