Commit 5f49908a authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[media] rc-core: fix return codes in ir_lirc_ioctl()

These should be -ENOSYS because not -EINVAL.
Reported-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 48cafec9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment