]> err.no Git - linux-2.6/blobdiff - drivers/watchdog/softdog.c
ALSA: wm8750: add missing VREF output
[linux-2.6] / drivers / watchdog / softdog.c
index bb3c75eed9df765d8759d62be86f18e0b7aebb94..c650464c5c63d2f87720390d93e417f111a1f6ee 100644 (file)
@@ -206,8 +206,6 @@ static long softdog_ioctl(struct file *file, unsigned int cmd,
                .identity =             "Software Watchdog",
        };
        switch (cmd) {
-       default:
-               return -ENOTTY;
        case WDIOC_GETSUPPORT:
                return copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0;
        case WDIOC_GETSTATUS:
@@ -225,6 +223,8 @@ static long softdog_ioctl(struct file *file, unsigned int cmd,
                /* Fall */
        case WDIOC_GETTIMEOUT:
                return put_user(soft_margin, p);
+       default:
+               return -ENOTTY;
        }
 }