提交 d07df223 编写于 作者: S Sean Young 提交者: 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: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册