mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[media] rc-core: fix return codes in ir_lirc_ioctl()
These should be -ENOSYS because not -EINVAL. Reported-by: Sean Young <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
48cafec9a9
commit
5f49908adb
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue