media: rc-loopback: return number of emitters rather than error
authorSean Young <sean@mess.org>
Sat, 3 Jul 2021 13:37:17 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:43:03 +0000 (11:43 +0200)
commit3f6e9163387c94d275571aa39393fe2c85cd5243
tree060aff9f977c24d4f0b873932051a781237a8e55
parentcb928da8c5a1df13eb14b9203a4c49be67938c64
media: rc-loopback: return number of emitters rather than error

commit 6b7f554be8c92319d7e6df92fd247ebb9beb4a45 upstream.

The LIRC_SET_TRANSMITTER_MASK ioctl should return the number of emitters
if an invalid list was set.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/rc/rc-loopback.c