dect
/
linux-2.6
Archived
13
0
Fork 0

[WATCHDOG] omap_wdt.c - default error for IOCTL is -ENOTTY

The default value for an unknown ioctl call is -ENOTTY.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
Wim Van Sebroeck 2007-07-24 21:55:06 +00:00
parent 6abe78bf19
commit 1bf1496d41
1 changed files with 1 additions and 1 deletions

View File

@ -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));