aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/viocons.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-08-06 17:36:23 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-06 17:36:23 -0700
commitf99e8f277f1172c49ac7b0585aed5b094fe235d4 (patch)
treeeba6b6cb42ead945ea567d6a29a8c7b7b4669530 /drivers/char/viocons.c
parentpcm_native.c: remove unused label (diff)
downloadlinux-dev-f99e8f277f1172c49ac7b0585aed5b094fe235d4.tar.xz
linux-dev-f99e8f277f1172c49ac7b0585aed5b094fe235d4.zip
iSeries: Fix up viotty_ioctl BKL locking fallout
The bogus code to call into the n_tty layer got removed in commit 8bc5fb6abb670fa9079cd1994f016a39f99698fe ("Remove bogons from the iSeries console"), but it left a now uninitialized "return ret;" around. Not that this code has ever even compiled since the BKL pushdown, since not only is "ret" no longer initialized, it was never actually declared even originally. Replace it with a "return -ENOIOCTLCMD" Pointed-out-by: Paul Mackerras <paulus@samba.org> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/viocons.c')
-rw-r--r--drivers/char/viocons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/viocons.c b/drivers/char/viocons.c
index f48892ba12f5..7feeb774a101 100644
--- a/drivers/char/viocons.c
+++ b/drivers/char/viocons.c
@@ -705,7 +705,7 @@ static int viotty_ioctl(struct tty_struct *tty, struct file *file,
case KDSKBLED:
return 0;
}
- return ret;
+ return -ENOIOCTLCMD;
}
/*