Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -203,13 +203,13 @@ static long ir_lirc_ioctl(struct file *filep, unsigned int cmd,
	/* TX settings */
	/* TX settings */
	case LIRC_SET_TRANSMITTER_MASK:
	case LIRC_SET_TRANSMITTER_MASK:
		if (!dev->s_tx_mask)
		if (!dev->s_tx_mask)
			return -EINVAL;
			return -ENOSYS;


		return dev->s_tx_mask(dev, val);
		return dev->s_tx_mask(dev, val);


	case LIRC_SET_SEND_CARRIER:
	case LIRC_SET_SEND_CARRIER:
		if (!dev->s_tx_carrier)
		if (!dev->s_tx_carrier)
			return -EINVAL;
			return -ENOSYS;


		return dev->s_tx_carrier(dev, val);
		return dev->s_tx_carrier(dev, val);