Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Rasmus Villemoes and committed by
Mauro Carvalho Chehab
974eadf1 bfe17178

+1 -4
+1 -4
drivers/media/usb/dvb-usb-v2/lmedm04.c
··· 1173 1173 1174 1174 mutex_lock(&d->i2c_mutex); 1175 1175 1176 - if (onoff) 1177 - ret = lme2510_usb_talk(d, lnb_on, len, rbuf, rlen); 1178 - else 1179 - ret = lme2510_usb_talk(d, lnb_off, len, rbuf, rlen); 1176 + ret = lme2510_usb_talk(d, onoff ? lnb_on : lnb_off, len, rbuf, rlen); 1180 1177 1181 1178 st->i2c_talk_onoff = 1; 1182 1179