]> git.baikalelectronics.ru Git - kernel.git/commit
[media] lirc_dev: fix error return value
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 6 Jul 2016 09:01:24 +0000 (06:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 18:26:52 +0000 (15:26 -0300)
commit2d3159107b26900d21599f71e559726a767372c7
tree4f9b4323717c9fc24842c28d34e31b86af663bae
parent940e139132582974efaacd745f572af13303a5c9
[media] lirc_dev: fix error return value

If ioctl is called, it cannot be a case of invalid system call
number (ENOSYS), that is a ENOTTY case which means that the
device doesn't support that specific ioctl command.

So, replace ENOSYS with ENOTTY.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c