diff options
Diffstat (limited to 'drivers/watchdog/s3c2410_wdt.c')
-rw-r--r-- | drivers/watchdog/s3c2410_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 97b4a2e8eb09..44bf5e4282e1 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c | |||
@@ -305,8 +305,6 @@ static long s3c2410wdt_ioctl(struct file *file, unsigned int cmd, | |||
305 | int new_margin; | 305 | int new_margin; |
306 | 306 | ||
307 | switch (cmd) { | 307 | switch (cmd) { |
308 | default: | ||
309 | return -ENOTTY; | ||
310 | case WDIOC_GETSUPPORT: | 308 | case WDIOC_GETSUPPORT: |
311 | return copy_to_user(argp, &s3c2410_wdt_ident, | 309 | return copy_to_user(argp, &s3c2410_wdt_ident, |
312 | sizeof(s3c2410_wdt_ident)) ? -EFAULT : 0; | 310 | sizeof(s3c2410_wdt_ident)) ? -EFAULT : 0; |
@@ -325,6 +323,8 @@ static long s3c2410wdt_ioctl(struct file *file, unsigned int cmd, | |||
325 | return put_user(tmr_margin, p); | 323 | return put_user(tmr_margin, p); |
326 | case WDIOC_GETTIMEOUT: | 324 | case WDIOC_GETTIMEOUT: |
327 | return put_user(tmr_margin, p); | 325 | return put_user(tmr_margin, p); |
326 | default: | ||
327 | return -ENOTTY; | ||
328 | } | 328 | } |
329 | } | 329 | } |
330 | 330 | ||