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

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;