[media] cec: fix ioctl return code when not registered
authorHans Verkuil <hansverk@cisco.com>
Wed, 24 Aug 2016 10:17:22 +0000 (07:17 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 5 Sep 2016 18:36:15 +0000 (15:36 -0300)
commit012800356b597f33a0def82e7dccd534adf5caa4
treed0a709ce58f0679a8e739a5e72b2b82205021f33
parent5aacbc59907263ba112434c804b5fd9984790b42
[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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/cec/cec-api.c
This page took 0.034157 seconds and 5 git commands to generate.