瀏覽代碼

[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>
Wim Van Sebroeck 18 年之前
父節點
當前提交
1bf1496d41
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/char/watchdog/omap_wdt.c

+ 1 - 1
drivers/char/watchdog/omap_wdt.c

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