From patchwork Wed Jul 2 15:28:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 4466251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E81CCBEEAA for ; Wed, 2 Jul 2014 15:31:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23AB020270 for ; Wed, 2 Jul 2014 15:31:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64E9A2024F for ; Wed, 2 Jul 2014 15:31:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X2MTc-0002Tu-Ld; Wed, 02 Jul 2014 15:29:40 +0000 Received: from mail-ie0-f174.google.com ([209.85.223.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X2MTP-0002Ah-K2 for linux-arm-kernel@lists.infradead.org; Wed, 02 Jul 2014 15:29:27 +0000 Received: by mail-ie0-f174.google.com with SMTP id lx4so9628030iec.33 for ; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) 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=zCeEgZQGKhGzFeC5OjrPBC7kmcAaN7rrzf8etOE1PuY=; b=Pw6uOwV1g0uHkDd5g5/ZC9PelcFWGhtkA1dW+V3HQFgu32iMXceds6IFPfnbJM696B 0UvTozXWm3BfPiGAoIUYFMwfjTYuQIUVPr7p5Hrjn0CPeiKecswTsLK+5WJMc7yPWhGh /ysqwYep4rfjezyLI29zgU6IaxQBp7PIADHIZGEnfUD9FWvDrB6Px9wByzC2AQ/XIaN9 RE3UCc4trbeb+cBWePVUWHIqpCcypnQuAEohkbsPvplfD3e6hLjkHHEu2sLAYyqovq3G bJZk6Bj3a4x6gazpIt2DUSKWRhNVdS/mHLNn2Jucp+9d8UmRhtgs0iPXUv/w6Fm2YRnj bkAg== X-Gm-Message-State: ALoCoQmEsm319bNwDSKshJ6hBtV0NyOGsaCZV1Orgt2j+aTWO9PJgYymiBkcgdiddMjmXrAtE5V+ X-Received: by 10.50.79.196 with SMTP id l4mr5622365igx.16.1404314940922; Wed, 02 Jul 2014 08:29:00 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id d4sm23997781igc.5.2014.07.02.08.28.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:00 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/12] mfd: ab8500-core: Remove pointless else in if statement Date: Wed, 2 Jul 2014 16:28:33 +0100 Message-Id: <1404314924-23564-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> References: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140702_082927_695256_BE545486 X-CRM114-Status: GOOD ( 11.72 ) X-Spam-Score: -0.2 (/) Cc: linus.walleij@linaro.org, Lee Jones , sameo@linux.intel.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, SUSPICIOUS_RECIPS, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Save a line of code (albeit, it's replaced by a blank line, but still), as the else is superfluous. Cc: Linus Walleij Signed-off-by: Lee Jones Reviewed-by: Linus Walleij --- drivers/mfd/ab8500-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index cf2e6a1..857f19a 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -607,8 +607,8 @@ int ab8500_suspend(struct ab8500 *ab8500) { if (atomic_read(&ab8500->transfer_ongoing)) return -EINVAL; - else - return 0; + + return 0; } static struct resource ab8500_gpadc_resources[] = {