]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
authorWim Van Sebroeck <wim@iguana.be>
Wed, 13 Sep 2006 19:27:29 +0000 (21:27 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 4 Oct 2006 20:42:19 +0000 (22:42 +0200)
Return ENOTTY instead of ENOIOCTLCMD in user-visible ioctl() results

The watchdog drivers used to return ENOIOCTLCMD for bad ioctl() commands.
ENOIOCTLCMD should not be visible by the user, so use ENOTTY instead.

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
drivers/char/watchdog/w83697hf_wdt.c

index 21e822e0eeec26870cdc28b856f8d5fe37c53dfc..32710a97b161755668e82b84a858ece4e4777fbb 100644 (file)
@@ -233,7 +233,7 @@ wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
        }
 
        default:
-         return -ENOIOCTLCMD;
+         return -ENOTTY;
        }
        return 0;
 }