]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: simplify save_adjtime() execution flow
authorSami Kerola <kerolasa@iki.fi>
Sun, 17 Jul 2016 11:12:52 +0000 (12:12 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sat, 4 Feb 2017 23:39:37 +0000 (23:39 +0000)
commit4aca5fe247738d43920c6ea20030848d7864aba2
tree18150060e385e5487b93ac52af8c5290dca4d3a4
parentc6ea9ef6cbe3a7ec38f550b18239fc1b27eb5e41
hwclock: simplify save_adjtime() execution flow

Return early to avoid excessive nesting.  In same go remove any chance of
overflow by using appropriate allocation.  And update variable names to be
easier to understand.

Reviewed-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/hwclock.c