Commit aa9efbc7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] dw2102: return error if su3000_power_ctrl() fails

Instead of silently ignoring the error, return it.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent e2296021
...@@ -852,7 +852,7 @@ static int su3000_power_ctrl(struct dvb_usb_device *d, int i) ...@@ -852,7 +852,7 @@ static int su3000_power_ctrl(struct dvb_usb_device *d, int i)
if (i && !state->initialized) { if (i && !state->initialized) {
state->initialized = 1; state->initialized = 1;
/* reset board */ /* 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; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment