]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83793) Clean up a signedness issue
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Oct 2013 09:12:22 +0000 (12:12 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 19 Oct 2013 16:04:25 +0000 (09:04 -0700)
commit700dc4073e5f0e3de56b1a33ecffa589593ab80a
treec7de6fd00052d616f866c6f2525ac71d4fa5725a
parent84361133f013222ca667228c9547beee5ee6fe1e
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 <dan.carpenter@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/w83793.c