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: 32992 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 02DBB20560 for ; Wed, 2 Jul 2014 15:29:02 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf23762050qac.8 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:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=zCeEgZQGKhGzFeC5OjrPBC7kmcAaN7rrzf8etOE1PuY=; b=aY8CD01Kutf1COqSD8tC5Pcvd17sDaTyatT7vrhsKZDn2P32upzOqNk0GM3Rf7hsH5 WHuHWRZlJEwERH+dxoFuN47ixTcQOOF0MaWR+Iheqyf0ztqqWEgyeHQMqbdwVNNgcc56 GGtOEl4RqOFrnFJnN4fOPZeABzL3h3SyK2oW7lqGpitdMvvInfWXpPfpjOhm6FdVCy3j PTn8BnVImp3QM3AWqZRv8zYGT7Il5OEQ+CgMzBwx445HXkbobWgCjzFBzsAiYQIFmpCo KZVqfh2GlrWPKqp0GBcdl/zlY3iLYyA6wOSyPkMziCvusRgXajCf+W+bCBgCYax8x/Dy cNyA== X-Gm-Message-State: ALoCoQldZRjArFa7IkolYOqAVKnfcB17CQaHBrqOt6RJxyrKaEmxBqbayYg1/4rYS/1jCBSDnY7m X-Received: by 10.236.198.134 with SMTP id v6mr6423886yhn.49.1404314941853; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.207 with SMTP id r73ls77566qgd.44.gmail; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) X-Received: by 10.52.244.81 with SMTP id xe17mr5402031vdc.24.1404314941784; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id m2si13060404vek.107.2014.07.02.08.29.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id hy10so10658670vcb.1 for ; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) X-Received: by 10.52.88.44 with SMTP id bd12mr99090vdb.86.1404314941717; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp301867vcb; Wed, 2 Jul 2014 08:29:01 -0700 (PDT) X-Received: by 10.43.144.80 with SMTP id jp16mr2848893icc.87.1404314941167; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by mx.google.com with ESMTPS id dx5si21480505igb.27.2014.07.02.08.29.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:01 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.223.181 as permitted sender) client-ip=209.85.223.181; Received: by mail-ie0-f181.google.com with SMTP id y20so1471238ier.26 for ; Wed, 02 Jul 2014 08:29:01 -0700 (PDT) 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 Cc: sameo@linux.intel.com, linus.walleij@linaro.org, Lee Jones 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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[] = {