From: Roel Kluin Date: Sun, 18 Oct 2009 07:17:15 +0000 (-0700) Subject: Input: hp_sdc_rtc - fix test in hp_sdc_rtc_read_rt() X-Git-Tag: v3.0~6884^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3776989d2339c58ff8d8421e754603f186d7439b;p=platform%2Fkernel%2Flinux-amlogic.git Input: hp_sdc_rtc - fix test in hp_sdc_rtc_read_rt() If left unsigned the hp_sdc_rtc_read_i8042timer() return value will not be checked correctly. Signed-off-by: Roel Kluin Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/hp_sdc_rtc.c b/drivers/input/misc/hp_sdc_rtc.c index 216a559..ea821b5 100644 --- a/drivers/input/misc/hp_sdc_rtc.c +++ b/drivers/input/misc/hp_sdc_rtc.c @@ -209,7 +209,7 @@ static inline int hp_sdc_rtc_read_rt(struct timeval *res) { /* Read the i8042 fast handshake timer */ static inline int hp_sdc_rtc_read_fhs(struct timeval *res) { - uint64_t raw; + int64_t raw; unsigned int tenms; raw = hp_sdc_rtc_read_i8042timer(HP_SDC_CMD_LOAD_FHS, 2);