Skip to content

Commit

Permalink
[WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY
Browse files Browse the repository at this point in the history
The default value for an unknown ioctl call is -ENOTTY.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Wim Van Sebroeck committed Jul 24, 2007
1 parent 6abe78b commit 1bf1496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ omap_wdt_ioctl(struct inode *inode, struct file *file,

switch (cmd) {
default:
return -ENOIOCTLCMD;
return -ENOTTY;
case WDIOC_GETSUPPORT:
return copy_to_user((struct watchdog_info __user *)arg, &ident,
sizeof(ident));
Expand Down

0 comments on commit 1bf1496

Please sign in to comment.