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

Commit 60815d4a authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] cec: fix ioctl return code when not registered



Don't return the confusing -EIO error code when the device is not registered,
instead return -ENODEV which is the proper thing to do in this situation.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a179b693
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ static long cec_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
	void __user *parg = (void __user *)arg;

	if (!devnode->registered)
		return -EIO;
		return -ENODEV;

	switch (cmd) {
	case CEC_ADAP_G_CAPS: