From patchwork Sun Sep 11 06:26:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 75954 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp332842qgf; Sat, 10 Sep 2016 23:30:09 -0700 (PDT) X-Received: by 10.98.220.145 with SMTP id c17mr4603930pfl.159.1473575408918; Sat, 10 Sep 2016 23:30:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n81si14113930pfb.192.2016.09.10.23.30.08; Sat, 10 Sep 2016 23:30:08 -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 S1755198AbcIKGaC (ORCPT + 27 others); Sun, 11 Sep 2016 02:30:02 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:55073 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621AbcIKG37 (ORCPT ); Sun, 11 Sep 2016 02:29:59 -0400 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-07.nifty.com with ESMTP id u8B6QvP2017166; Sun, 11 Sep 2016 15:27:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com u8B6QvP2017166 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1473575221; bh=Z8MMYsBSRYzrGIy99ohBDsb11PPki5gjeIeOnW6IXI0=; h=From:To:Cc:Subject:Date:From; b=APN/1u9gwzys/fh2UDSNx7wbXJCsLg1NUpwDeC33s4jZdfUrO+ea9QsnGrXdxn+4O rZegadvtHBgZRhrXF+rsHpHbhSPEwqMxDHAo27aWcfIo3jeHwa+whEnMiTAwEhNLMn WB/mingi072dbhtaxcohT+9YDGuLAkrhWNjXUJEfsBPaQOJSrPjliLDE36AV/2u4Va reBLrcFJGSfPTdm1Ubvopl7zm1e//2cqtDtLeGQsq80IxFhF24X18C/6qI7RvfeZgu jTnknZPt+YAmVPnaU6L5TxniuaxEOsGMyMLBfvtkpWiSrnZGdDXFwi69xC1G2+T6rK WK/gtz20eJVQA== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky Cc: Masahiro Yamada , Lorenzo Pieralisi , Bjorn Helgaas , Christian Borntraeger , Vineet Gupta , David Vrabel , linux-kernel@vger.kernel.org, Matt Turner , Robin Murphy , Hans-Christian Noren Egtvedt , Yinghai Lu , Joerg Roedel , Krzysztof Kozlowski Subject: [PATCH] alpha: squash lines for immediate return Date: Sun, 11 Sep 2016 15:26:51 +0900 Message-Id: <1473575211-24416-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variables and assignments. While we are here, fix the coding style of SMC37c669_read_config(): - replace whitespaces at the start of lines with tabs - remove unneeded whitespaces around parentheses Signed-off-by: Masahiro Yamada --- arch/alpha/kernel/pci-noop.c | 6 +----- arch/alpha/kernel/pci.c | 6 +----- arch/alpha/kernel/smc37c669.c | 7 ++----- 3 files changed, 4 insertions(+), 15 deletions(-) -- 1.9.1 diff --git a/arch/alpha/kernel/pci-noop.c b/arch/alpha/kernel/pci-noop.c index bb152e2..4166827 100644 --- a/arch/alpha/kernel/pci-noop.c +++ b/arch/alpha/kernel/pci-noop.c @@ -42,11 +42,7 @@ alloc_pci_controller(void) struct resource * __init alloc_resource(void) { - struct resource *res; - - res = alloc_bootmem(sizeof(*res)); - - return res; + return alloc_bootmem(sizeof(struct resource)); } asmlinkage long diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 5f387ee..8322df1 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c @@ -379,11 +379,7 @@ alloc_pci_controller(void) struct resource * __init alloc_resource(void) { - struct resource *res; - - res = alloc_bootmem(sizeof(*res)); - - return res; + return alloc_bootmem(sizeof(struct resource)); } diff --git a/arch/alpha/kernel/smc37c669.c b/arch/alpha/kernel/smc37c669.c index c803fc7..4dbd4e4 100644 --- a/arch/alpha/kernel/smc37c669.c +++ b/arch/alpha/kernel/smc37c669.c @@ -2007,11 +2007,8 @@ static void __init SMC37c669_config_mode( static unsigned char __init SMC37c669_read_config( unsigned char index ) { - unsigned char data; - - wb( &SMC37c669->index_port, index ); - data = rb( &SMC37c669->data_port ); - return data; + wb(&SMC37c669->index_port, index); + return rb(&SMC37c669->data_port); } /*