Skip to content

Commit f3c87a8

Browse files
author
Linus Torvalds
committed
Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
* master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl()
2 parents 2fee7b1 + f311896 commit f3c87a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/char/watchdog/iTCO_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ static int iTCO_wdt_ioctl (struct inode *inode, struct file *file,
494494
}
495495

496496
default:
497-
return -ENOIOCTLCMD;
497+
return -ENOTTY;
498498
}
499499
}
500500

drivers/char/watchdog/pnx4008_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static int
184184
pnx4008_wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
185185
unsigned long arg)
186186
{
187-
int ret = -ENOIOCTLCMD;
187+
int ret = -ENOTTY;
188188
int time;
189189

190190
switch (cmd) {

0 commit comments

Comments
 (0)