summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/redrat3.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2016-07-10 13:34:33 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-15 11:54:23 -0300
commit14d8188aabd174b7411388db9c075e77aa69b781 (patch)
treef4a0a8bca2d35e8796d712d9ca52cc39444edc6e /drivers/media/rc/redrat3.c
parent20f5a827cf4b8fa11d5897e4d92d1a480f2cf58b (diff)
downloadlinux-14d8188aabd174b7411388db9c075e77aa69b781.tar.bz2
[media] rc: make s_tx_carrier consistent
LIRC_SET_SEND_CARRIER should return 0 on success or -errno. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/redrat3.c')
-rw-r--r--drivers/media/rc/redrat3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c
index ec74244a3853..6adea78c1f69 100644
--- a/drivers/media/rc/redrat3.c
+++ b/drivers/media/rc/redrat3.c
@@ -708,7 +708,7 @@ static int redrat3_set_tx_carrier(struct rc_dev *rcdev, u32 carrier)
rr3->carrier = carrier;
- return carrier;
+ return 0;
}
static int redrat3_transmit_ir(struct rc_dev *rcdev, unsigned *txbuf,