Commit d07df223 authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab

[media] rc: transmit on device which does not support it should fail

Currently write() will return 0 if an IR device does not support sending.
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4da212e2
......@@ -105,7 +105,7 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf,
struct lirc_codec *lirc;
struct rc_dev *dev;
unsigned int *txbuf; /* buffer with values to transmit */
ssize_t ret = 0;
ssize_t ret = -EINVAL;
size_t count;
lirc = lirc_get_pdata(file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment