Skip to content

Commit

Permalink
[media] rc-core: fix return codes in ir_lirc_ioctl()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Oct 6, 2012
1 parent 48cafec commit 5f49908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/rc/ir-lirc-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5f49908

Please sign in to comment.