mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
hwmon: (w83793) Clean up a signedness issue
We cap the upper bound of "mtimeout" but since it's signed we should check for negative values as well. The mistake is harmless. But I have changed it to unsigned as a cleanup. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
1e687e806b
commit
26336c8a36
1 changed files with 2 additions and 1 deletions
|
|
@ -1199,7 +1199,8 @@ static void w83793_init_client(struct i2c_client *client)
|
|||
|
||||
static int watchdog_set_timeout(struct w83793_data *data, int timeout)
|
||||
{
|
||||
int ret, mtimeout;
|
||||
unsigned int mtimeout;
|
||||
int ret;
|
||||
|
||||
mtimeout = DIV_ROUND_UP(timeout, 60);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue