Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);