[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200323072956.38263-1-peng.ma@nxp.com>
Date: Mon, 23 Mar 2020 15:29:56 +0800
From: Peng Ma <peng.ma@....com>
To: a.zummo@...ertech.it, alexandre.belloni@...tlin.com
Cc: linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org,
leoyang.li@....com, ran.wang_1@....com, biwen.li@....com,
Peng Ma <peng.ma@....com>
Subject: [PATCH] rtc: fsl-ftm-alarm: remove the useless variable
Remove the useless variable to fixed the below build warning:
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;
Signed-off-by: Peng Ma <peng.ma@....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 const struct rtc_class_ops ftm_rtc_ops = {
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;
--
2.9.5
Powered by blists - more mailing lists