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

Commit 974eadf1 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Mauro Carvalho Chehab
Browse files

[media] lmedm04: make lme2510_powerup a little smaller



gcc isn't smart enough to realize it can share most of the argument
buildup and the actual function call between the two branches, so help
it a little.

Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent bfe17178
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1173,10 +1173,7 @@ static int lme2510_powerup(struct dvb_usb_device *d, int onoff)

	mutex_lock(&d->i2c_mutex);

	if (onoff)
		ret = lme2510_usb_talk(d, lnb_on, len, rbuf, rlen);
	else
		ret = lme2510_usb_talk(d, lnb_off, len, rbuf, rlen);
	ret = lme2510_usb_talk(d, onoff ? lnb_on : lnb_off, len, rbuf, rlen);

	st->i2c_talk_onoff = 1;