From 6d8fc1cf327cf92f8730bc918d7badc323888fe4 Mon Sep 17 00:00:00 2001 From: Bastian Krause Date: Wed, 21 Dec 2022 11:44:23 +0100 Subject: [PATCH] hwclock: fix return value on successful --param-get hwclock should return 0 on sucessful --param-get. Fixes: 6097b12df ("hwclock: add --param-get option") Signed-off-by: Bastian Krause --- sys-utils/hwclock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index 1bd371a0b3..ad1eb688e4 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1169,6 +1169,7 @@ manipulate_rtc_param(const struct hwclock_control *ctl) printf(_("The RTC parameter 0x%jx is set to 0x%jx.\n"), (uintmax_t) id, (uintmax_t) value); + return 0; } else if (ctl->param_set_option) { if (ctl->testing) -- 2.47.3