mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
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 <roel.kluin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
000c2a35b8
commit
3776989d23
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue