mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
watchdog: wdt285: Fix variable type
Variable "new_margin" is checked in the function watchdog_ioctl() to be non-negative, so change its type to "int". Signed-off-by: Alexander Shiyan <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
This commit is contained in:
parent
1cf8a3487d
commit
70605d9bab
1 changed files with 1 additions and 2 deletions
|
|
@ -139,9 +139,8 @@ static const struct watchdog_info ident = {
|
|||
static long watchdog_ioctl(struct file *file, unsigned int cmd,
|
||||
unsigned long arg)
|
||||
{
|
||||
unsigned int new_margin;
|
||||
int __user *int_arg = (int __user *)arg;
|
||||
int ret = -ENOTTY;
|
||||
int new_margin, ret = -ENOTTY;
|
||||
|
||||
switch (cmd) {
|
||||
case WDIOC_GETSUPPORT:
|
||||
|
|
|
|||
Loading…
Reference in a new issue