ntp: Make is_error_status() use its argument
authorGeorge Spelvin <linux@horizon.com>
Mon, 12 May 2014 13:35:48 +0000 (09:35 -0400)
committerJohn Stultz <john.stultz@linaro.org>
Mon, 12 May 2014 18:01:08 +0000 (11:01 -0700)
is_error_status() is an inline function always called with the
global time_status as an argument, so there's zero functional
difference with this change, but the non-CONFIG_NTP_PPS version
uses the passed-in argument, while the CONFIG_NTP_PPS one ignores
its argument and uses the global.

Looks like is_error_status was refactored out, but someone forgot
to change the logic to check the local argument value.

Thus this patch makes it use the argument always; shorter variable
names are good.

Signed-off-by: George Spelvin <linux@horizon.com>
[jstultz: Tweaked commit message]
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/ntp.c

Simple merge