mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
[media] dw2102: return error if su3000_power_ctrl() fails
Instead of silently ignoring the error, return it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
e229602108
commit
aa9efbc7b6
@ -852,7 +852,7 @@ static int su3000_power_ctrl(struct dvb_usb_device *d, int i)
|
||||
if (i && !state->initialized) {
|
||||
state->initialized = 1;
|
||||
/* reset board */
|
||||
dvb_usb_generic_rw(d, obuf, 2, NULL, 0, 0);
|
||||
return dvb_usb_generic_rw(d, obuf, 2, NULL, 0, 0);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user