From: Jose Diaz de Grenu de Pedro <Jose.DiazdeGrenu@digi.com>
To: <a.zummo@towertech.it>, <alexandre.belloni@free-electrons.com>
Cc: <rtc-linux@googlegroups.com>, <Jose.DiazdeGrenu@digi.com>,
<trivial@kernel.org>
Subject: [rtc-linux] [PATCH] drivers: rtc-mxc: remove unused variable
Date: Thu, 11 May 2017 17:38:39 +0200 [thread overview]
Message-ID: <1494517119-23622-1-git-send-email-Jose.DiazdeGrenu@digi.com> (raw)
From: "Diaz de Grenu, Jose" <Jose.DiazdeGrenu@digi.com>
This variable was never used. With GCC 6.2, we get the following warning:
drivers/rtc/rtc-mxc.c:44:18: warning: =E2=80=98PIE_BIT_DEF=E2=80=99 defined=
but not used [-Wunused-const-variable=3D]
static const u32 PIE_BIT_DEF[MAX_PIE_NUM][2] =3D {
Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
---
drivers/rtc/rtc-mxc.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/drivers/rtc/rtc-mxc.c b/drivers/rtc/rtc-mxc.c
index 77319122642a..401f46d8f21b 100644
--- a/drivers/rtc/rtc-mxc.c
+++ b/drivers/rtc/rtc-mxc.c
@@ -43,17 +43,6 @@
=20
#define MAX_PIE_NUM 9
#define MAX_PIE_FREQ 512
-static const u32 PIE_BIT_DEF[MAX_PIE_NUM][2] =3D {
- { 2, RTC_2HZ_BIT },
- { 4, RTC_SAM0_BIT },
- { 8, RTC_SAM1_BIT },
- { 16, RTC_SAM2_BIT },
- { 32, RTC_SAM3_BIT },
- { 64, RTC_SAM4_BIT },
- { 128, RTC_SAM5_BIT },
- { 256, RTC_SAM6_BIT },
- { MAX_PIE_FREQ, RTC_SAM7_BIT },
-};
=20
#define MXC_RTC_TIME 0
#define MXC_RTC_ALARM 1
--=20
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---=20
You received this message because you are subscribed to the Google Groups "=
rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
next reply other threads:[~2017-05-11 15:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-11 15:38 Jose Diaz de Grenu de Pedro [this message]
2017-06-24 8:52 ` [rtc-linux] Re: [PATCH] drivers: rtc-mxc: remove unused variable Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1494517119-23622-1-git-send-email-Jose.DiazdeGrenu@digi.com \
--to=jose.diazdegrenu@digi.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=rtc-linux@googlegroups.com \
--cc=trivial@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox