From patchwork Wed Sep 14 14:39:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 76222 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1911170qgf; Wed, 14 Sep 2016 07:42:29 -0700 (PDT) X-Received: by 10.98.111.133 with SMTP id k127mr5174654pfc.90.1473864149238; Wed, 14 Sep 2016 07:42:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m90si6691347pfa.8.2016.09.14.07.42.28; Wed, 14 Sep 2016 07:42:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764367AbcINOmT (ORCPT + 27 others); Wed, 14 Sep 2016 10:42:19 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:52208 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762117AbcINOmO (ORCPT ); Wed, 14 Sep 2016 10:42:14 -0400 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-08.nifty.com with ESMTP id u8EEdDmP016736; Wed, 14 Sep 2016 23:39:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com u8EEdDmP016736 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1473863974; bh=KzKWrMdsI5nG1BcNxTuR3Zzikwx0FhHKM2Spi7aO490=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wUCcPoSa/fmXoJM3ENBrFLmv4iunFYNvkGgsGOYE4rxuwwSzpWXdcN+BsM432syY+ JW2P7eXkzATkIxeTN0zATF7bgt2TwMhinWyFvF2aypNwATUUPS5MXT5BjGaKbGpOPs noDuTlRP8fULnk+EhPt0eoASUpgs1fuZuP00UP5RrRUDetF4oy4NqDCc5/yLQC7Mzy 7syFU354iZ98OdQgNKNsP/59CHltH5qwFMFAwfSxsXFoSymUdwyXK/bG3y7KLJZ4ac 8XpmZmL2hk1Gx+EMWU9icJbOtcXexMDjsdSYPfeJF1GVtikY/3a4GhPyaLDJLpMLt2 eR8ypKZz45IyQ== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: David Airlie , dri-devel@lists.freedesktop.org Cc: Christian K?nig , Jani Nikula , Alexander Deucher , Masahiro Yamada , Tomasz Figa , Heiko Stuebner , Yakir Yang , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Sean Paul Subject: [PATCH v2 3/5] drm/bridge: squash lines for simple wrapper functions Date: Wed, 14 Sep 2016 23:39:10 +0900 Message-Id: <1473863952-7658-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1473863952-7658-1-git-send-email-yamada.masahiro@socionext.com> References: <1473863952-7658-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada --- drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) -- 1.9.1 diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c index 52c1b6b..fae0293 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c @@ -1073,34 +1073,22 @@ void analogix_dp_set_lane3_link_training(struct analogix_dp_device *dp, u32 analogix_dp_get_lane0_link_training(struct analogix_dp_device *dp) { - u32 reg; - - reg = readl(dp->reg_base + ANALOGIX_DP_LN0_LINK_TRAINING_CTL); - return reg; + return readl(dp->reg_base + ANALOGIX_DP_LN0_LINK_TRAINING_CTL); } u32 analogix_dp_get_lane1_link_training(struct analogix_dp_device *dp) { - u32 reg; - - reg = readl(dp->reg_base + ANALOGIX_DP_LN1_LINK_TRAINING_CTL); - return reg; + return readl(dp->reg_base + ANALOGIX_DP_LN1_LINK_TRAINING_CTL); } u32 analogix_dp_get_lane2_link_training(struct analogix_dp_device *dp) { - u32 reg; - - reg = readl(dp->reg_base + ANALOGIX_DP_LN2_LINK_TRAINING_CTL); - return reg; + return readl(dp->reg_base + ANALOGIX_DP_LN2_LINK_TRAINING_CTL); } u32 analogix_dp_get_lane3_link_training(struct analogix_dp_device *dp) { - u32 reg; - - reg = readl(dp->reg_base + ANALOGIX_DP_LN3_LINK_TRAINING_CTL); - return reg; + return readl(dp->reg_base + ANALOGIX_DP_LN3_LINK_TRAINING_CTL); } void analogix_dp_reset_macro(struct analogix_dp_device *dp)