diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2016-11-30 22:39:12 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-02-03 10:39:38 +0100 |
commit | 974eadf1fc4f9bd0e9da686e7ba6c3e4e708fc45 (patch) | |
tree | 052398d45e2e68dbba61c0a2f703e3496cf60a9d | |
parent | [media] lmedm04: make some string arrays static (diff) | |
download | linux-974eadf1fc4f9bd0e9da686e7ba6c3e4e708fc45.tar.xz linux-974eadf1fc4f9bd0e9da686e7ba6c3e4e708fc45.zip |
[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>
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/lmedm04.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index 66833b61321a..924adfdb660d 100644 --- a/drivers/media/usb/dvb-usb-v2/lmedm04.c +++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c @@ -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; |