Skip to content
Commit b37d9c99 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: dw2102: return -EIO instead of -1 for mac address read errors



The dvb-usb core function only checks if the returned value is
zero, so it doesn't actually matter the error code. Still, returning
-1 as an error condition is something that we don't do upstream. So,
change the logic to return -EIO in case of I2C transfer failures.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 663e7460
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment