aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-15 04:23:25 -0500
committerWim Van Sebroeck <wim@iguana.be>2014-03-31 07:28:20 -0400
commit70605d9bab216534a593f3ec8218ab8c015cb452 (patch)
tree1e2247f211644300a15992831a07c66518fc8d38 /drivers/watchdog
parent1cf8a3487d385b3221d07ab6a7a003761e8806c1 (diff)
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 <shc_work@mail.ru> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/wdt285.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/watchdog/wdt285.c b/drivers/watchdog/wdt285.c
index 7355ddd0b207..ebbb183be618 100644
--- a/drivers/watchdog/wdt285.c
+++ b/drivers/watchdog/wdt285.c
@@ -139,9 +139,8 @@ static const struct watchdog_info ident = {
139static long watchdog_ioctl(struct file *file, unsigned int cmd, 139static long watchdog_ioctl(struct file *file, unsigned int cmd,
140 unsigned long arg) 140 unsigned long arg)
141{ 141{
142 unsigned int new_margin;
143 int __user *int_arg = (int __user *)arg; 142 int __user *int_arg = (int __user *)arg;
144 int ret = -ENOTTY; 143 int new_margin, ret = -ENOTTY;
145 144
146 switch (cmd) { 145 switch (cmd) {
147 case WDIOC_GETSUPPORT: 146 case WDIOC_GETSUPPORT: