]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: remove unused atomic arg in cmos
authorJ William Piggott <elseifthen@gmx.com>
Sat, 25 Mar 2017 23:16:30 +0000 (19:16 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Fri, 31 Mar 2017 14:04:53 +0000 (10:04 -0400)
* sys-utils/hwclock-cmos.c: remove unused arg for atomic()

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock-cmos.c

index 6c86a7cca65640ded81174e1918927f992f97196..a5eb9fd631f6729709984f55a37d8b2eec9b4000 100644 (file)
@@ -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)