From: Dan Carpenter Date: Tue, 11 Sep 2012 10:11:53 +0000 (-0300) Subject: [media] rc-core: fix return codes in ir_lirc_ioctl() X-Git-Tag: upstream/snapshot3+hdmi~4891^2~940 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f49908adb1ff4f0cec429923f1f49e79f318812;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] rc-core: fix return codes in ir_lirc_ioctl() These should be -ENOSYS because not -EINVAL. Reported-by: Sean Young Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc/ir-lirc-codec.c index 569124b..870c930 100644 --- 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 -EINVAL; + return -ENOSYS; return dev->s_tx_mask(dev, val); case LIRC_SET_SEND_CARRIER: if (!dev->s_tx_carrier) - return -EINVAL; + return -ENOSYS; return dev->s_tx_carrier(dev, val);