diff options
author | Wim Van Sebroeck <wim@iguana.be> | 2006-09-13 15:27:29 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2006-10-04 16:42:19 -0400 |
commit | 196f29c8e8cd3352d26ed7bdf44f622e14adb931 (patch) | |
tree | 7fbc53f76d8871bec959ca6d4f8463c13367578f | |
parent | c310e2b950c949cfc14754baed877eadb1a26f6b (diff) |
[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
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>
-rw-r--r-- | drivers/char/watchdog/w83697hf_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/w83697hf_wdt.c b/drivers/char/watchdog/w83697hf_wdt.c index 21e822e0eeec..32710a97b161 100644 --- a/drivers/char/watchdog/w83697hf_wdt.c +++ b/drivers/char/watchdog/w83697hf_wdt.c | |||
@@ -233,7 +233,7 @@ wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, | |||
233 | } | 233 | } |
234 | 234 | ||
235 | default: | 235 | default: |
236 | return -ENOIOCTLCMD; | 236 | return -ENOTTY; |
237 | } | 237 | } |
238 | return 0; | 238 | return 0; |
239 | } | 239 | } |