projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48cafec
)
[media] rc-core: fix return codes in ir_lirc_ioctl()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 11 Sep 2012 10:11:53 +0000
(07:11 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 6 Oct 2012 12:25:01 +0000
(09:25 -0300)
These should be -ENOSYS because not -EINVAL.
Reported-by: Sean Young <sean@mess.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/ir-lirc-codec.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/ir-lirc-codec.c
b/drivers/media/rc/ir-lirc-codec.c
index 569124b03de3f8ecfa67321a536e144b628b81cd..870c93052fd0a0a97dc2138f1f5694d52507feba 100644
(file)
--- a/
drivers/media/rc/ir-lirc-codec.c
+++ b/
drivers/media/rc/ir-lirc-codec.c
@@
-203,13
+203,13
@@
static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,
/* TX settings */
case LIRC_SET_TRANSMITTER_MASK:
if (!dev->s_tx_mask)
- return -E
INVAL
;
+ return -E
NOSYS
;
return dev->s_tx_mask(dev, val);
case LIRC_SET_SEND_CARRIER:
if (!dev->s_tx_carrier)
- return -E
INVAL
;
+ return -E
NOSYS
;
return dev->s_tx_carrier(dev, val);