Skip to content

Commit

Permalink
[WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wim Van Sebroeck committed Oct 4, 2006
1 parent c310e2b commit 196f29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/w83697hf_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
}

default:
return -ENOIOCTLCMD;
return -ENOTTY;
}
return 0;
}
Expand Down

0 comments on commit 196f29c

Please sign in to comment.