summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock-cmos.c
diff options
context:
space:
mode:
authorJ William Piggott2017-03-26 00:16:30 +0100
committerJ William Piggott2017-03-31 16:04:53 +0200
commit51d94caa8d74486e30463903f1412fe6728d776b (patch)
treebb7dbc14c6e7075e9516519ae752a22aa07382e3 /sys-utils/hwclock-cmos.c
parenthwclock: remove unused cmos ctl structs (diff)
downloadkernel-qcow2-util-linux-51d94caa8d74486e30463903f1412fe6728d776b.tar.gz
kernel-qcow2-util-linux-51d94caa8d74486e30463903f1412fe6728d776b.tar.xz
kernel-qcow2-util-linux-51d94caa8d74486e30463903f1412fe6728d776b.zip
hwclock: remove unused atomic arg in cmos
* sys-utils/hwclock-cmos.c: remove unused arg for atomic() Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock-cmos.c')
-rw-r--r--sys-utils/hwclock-cmos.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c
index 6c86a7cca..a5eb9fd63 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)