From: Bastian Krause Date: Wed, 21 Dec 2022 10:44:23 +0000 (+0100) Subject: hwclock: fix return value on successful --param-get X-Git-Tag: v2.39-rc1~359^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d8fc1cf327cf92f8730bc918d7badc323888fe4;p=thirdparty%2Futil-linux.git 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 --- 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)