All of lore.kernel.org
 help / color / mirror / Atom feed
From: J William Piggott <elseifthen@gmx.com>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: [PATCH 3/6] hwclock: remove unused atomic arg in cmos
Date: Fri, 31 Mar 2017 10:46:08 -0400	[thread overview]
Message-ID: <221f8650-b1ed-0b89-d536-cb1e7c495acc@gmx.com> (raw)
In-Reply-To: <24f2ccba-6144-9497-69fc-c5dbfd9a39fc@gmx.com>


* sys-utils/hwclock-cmos.c: remove unused arg for atomic()

Signed-off-by: J William Piggott <elseifthen@gmx.com>
---
 sys-utils/hwclock-cmos.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c
index 6c86a7c..a5eb9fd 100644
--- a/sys-utils/hwclock-cmos.c
+++ b/sys-utils/hwclock-cmos.c
@@ -114,10 +114,8 @@ static int century_byte = 0;		/* 0: don't access a century byte
  *
  * TODO: optimize the access to CMOS by mlockall(MCL_CURRENT) and SCHED_FIFO
  */
-static unsigned long
-atomic(const char *name __attribute__ ((__unused__)),
-       unsigned long (*op) (unsigned long),
-       unsigned long arg)
+static unsigned long atomic(unsigned long (*op) (unsigned long),
+			    unsigned long arg)
 {
 	return (*op) (arg);
 }
@@ -235,12 +233,12 @@ static unsigned long cmos_set_time(unsigned long arg)
 
 static int hclock_read(unsigned long reg)
 {
-	return atomic("clock read", cmos_read, reg);
+	return atomic(cmos_read, reg);
 }
 
 static void hclock_set_time(const struct tm *tm)
 {
-	atomic("set time", cmos_set_time, (unsigned long)(tm));
+	atomic(cmos_set_time, (unsigned long)(tm));
 }
 
 static inline int cmos_clock_busy(void)

  parent reply	other threads:[~2017-03-31 14:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-31 14:40 [PATCH 0/6] remove alpha cmos J William Piggott
2017-03-31 14:43 ` [PATCH 1/6] hwclock: " J William Piggott
2017-03-31 14:44 ` [PATCH 2/6] hwclock: remove unused cmos ctl structs J William Piggott
2017-03-31 14:46 ` J William Piggott [this message]
2017-03-31 14:47 ` [PATCH 4/6] hwclock: improve cmos message strings J William Piggott
2017-03-31 14:48 ` [PATCH 5/6] hwclock: remove dead cmos code J William Piggott
2017-03-31 14:49 ` [PATCH 6/6] hwclock: remove unused 'silent' arg J William Piggott
2017-04-04 12:53 ` [PATCH 0/6] remove alpha cmos Karel Zak

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=221f8650-b1ed-0b89-d536-cb1e7c495acc@gmx.com \
    --to=elseifthen@gmx.com \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.