From patchwork Wed Nov 30 21:39:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 9454981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6259660585 for ; Wed, 30 Nov 2016 21:39:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55387223A4 for ; Wed, 30 Nov 2016 21:39:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49E9228484; Wed, 30 Nov 2016 21:39:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56BCF28492 for ; Wed, 30 Nov 2016 21:39:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757056AbcK3Vjo (ORCPT ); Wed, 30 Nov 2016 16:39:44 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:34949 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754505AbcK3Vjn (ORCPT ); Wed, 30 Nov 2016 16:39:43 -0500 Received: by mail-wm0-f43.google.com with SMTP id a197so280610674wmd.0 for ; Wed, 30 Nov 2016 13:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bWoUfVw9W3TLUw8dCt40FYQE3sb9umnz/apAZQxffyw=; b=Rhkorl0N5sabE2Ffbcu5665ekjPf/Vaai7H8J43xAKZLfsDw7Eqdd0IEviNOGfY6rR 3SefnYiNTN2CzDpF9kjkeu4CsrBCHaCFDh/cPS0rz5X4G8OmvZBHiz8jVqM0bJVsrrKO mXSeWMdcPpDcJqQh1dfKW/w0Pe0Jn2NNVUZFY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bWoUfVw9W3TLUw8dCt40FYQE3sb9umnz/apAZQxffyw=; b=nAAKtUC2PlW7FqdfI5Uv0Bmy1X+BFCzQr2XwuT9zXD/wvIT94h9FakMkWG4a9gwKUe ep7YPv893q19QTfR++FBYyECm/7xObNN/QJVebhY2tAdzLizQx2WFgKplP9A9DK5HV5P HZnMfKPH0X9+aiNcLQVW0wiqVWDu4lMwakPTyuvtWSSzYJHNXsjx/7ZElk0fVgnFGkw1 QzhJGGPp8P8rYR9Yd7Vawc+fLlnn096No1vknBQZy/W3gIy97ze1z9XQNAbw7cNeushk gSioFCE4j3jC8iWwuhGpq09LkGIA4olUwuXDwHp4mfo45V9rpZyf/lbO2cLU0YrixW7z wt9g== X-Gm-Message-State: AKaTC03TpGQ2Udu9+GtzyP6H4MRDCDnp0kmMpdHYsJqSHzv/J4wAl+plfVh3YGlkrfXnQQ== X-Received: by 10.28.69.130 with SMTP id l2mr30763327wmi.123.1480541976354; Wed, 30 Nov 2016 13:39:36 -0800 (PST) Received: from lvps87-230-87-209.dedicated.hosteurope.de (wildmoose.dk. [87.230.87.209]) by smtp.gmail.com with ESMTPSA id di9sm74904113wjc.37.2016.11.30.13.39.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 13:39:36 -0800 (PST) From: Rasmus Villemoes To: Malcolm Priestley , Mauro Carvalho Chehab Cc: Rasmus Villemoes , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] [media] lmedm04: make lme2510_powerup a little smaller Date: Wed, 30 Nov 2016 22:39:12 +0100 Message-Id: <1480541953-27256-4-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1480541953-27256-1-git-send-email-linux@rasmusvillemoes.dk> References: <1480541953-27256-1-git-send-email-linux@rasmusvillemoes.dk> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/media/usb/dvb-usb-v2/lmedm04.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/media/usb/dvb-usb-v2/lmedm04.c index bf5bc36a6ed9..7462207f4fd7 100644 --- a/drivers/media/usb/dvb-usb-v2/lmedm04.c +++ b/drivers/media/usb/dvb-usb-v2/lmedm04.c @@ -1179,10 +1179,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;