From patchwork Sun Sep 22 01:20:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20507 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DD7D925E85 for ; Sun, 22 Sep 2013 01:21:56 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id h10sf1901520vbh.9 for ; Sat, 21 Sep 2013 18:21:56 -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: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=+vVwx8IBDWs24cIuSl+GoZtydy9A3ZoKOPVDSg6hPoE=; b=bxsOo5+R2Y+gWiZf0Tm1zcAkaytwXWlm4TXTHil8PJneyPaupTqogGNz7s6jdb9HgD kQepb2KlV0aTpK8SKdXhwt6um7vhzpYj2Y/70wjbd5AufjO0LvvnobJmRIdBlz4y6q/b G8cBGP2Y18Gsvfv2VYxgKAgj0XOtR74An/dRp0QbCOw2rYpVpboLg/aYsCTnP96DpLc6 vuKFts2YzYV5Y/DEDzQOWJq2dEapp7w2/UPn0KW+fiqnJW/4XaOL/4Gv33EYwYOZVD2O kBrLpSs1e5HgHmzjtADbWzLja1S6Lmrrdt5igYAZTy3rtvN8D6T1qHfcEkeMPDIibJSB RRiA== X-Gm-Message-State: ALoCoQmlQlW1w29Lt/0ciR5XpdozAlosNnhPvNOcHLtxRJnI8W8O3fJwu8ObulmQvrnf3rbWlLX2 X-Received: by 10.224.137.67 with SMTP id v3mr6640333qat.0.1379812916710; Sat, 21 Sep 2013 18:21:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.9 with SMTP id do9ls694957qeb.80.gmail; Sat, 21 Sep 2013 18:21:56 -0700 (PDT) X-Received: by 10.220.186.202 with SMTP id ct10mr14475679vcb.14.1379812916623; Sat, 21 Sep 2013 18:21:56 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id gq6si4530886veb.129.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ld13so1257601vcb.25 for ; Sat, 21 Sep 2013 18:21:56 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr14069821vcb.8.1379812916546; Sat, 21 Sep 2013 18:21:56 -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.220.174.196 with SMTP id u4csp91713vcz; Sat, 21 Sep 2013 18:21:56 -0700 (PDT) X-Received: by 10.68.180.165 with SMTP id dp5mr71291pbc.141.1379812915541; Sat, 21 Sep 2013 18:21:55 -0700 (PDT) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id dj4si15774221pbc.344.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:55 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id xb4so1826961pbc.22 for ; Sat, 21 Sep 2013 18:21:55 -0700 (PDT) X-Received: by 10.68.98.101 with SMTP id eh5mr16015926pbb.65.1379812915151; Sat, 21 Sep 2013 18:21:55 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id ct4sm24611185pbb.41.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 21 Sep 2013 18:21:54 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl, daniel.lezcano@linaro.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Viresh Kumar Subject: [PATCH 05/21] cpuidle: make __cpuidle_driver_init() return void Date: Sun, 22 Sep 2013 06:50:57 +0530 Message-Id: <70ae3eb991bded7c9768ae7934973943c2a1bf05.1379779777.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , __cpuidle_driver_init() doesn't return anything except zero and so doesn't really need a return type other than void. Signed-off-by: Viresh Kumar --- drivers/cpuidle/driver.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 25455e8..8df66c8 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -152,7 +152,7 @@ static void cpuidle_setup_broadcast_timer(void *arg) * * Returns 0 on success, a negative error code otherwise. */ -static int __cpuidle_driver_init(struct cpuidle_driver *drv) +static void __cpuidle_driver_init(struct cpuidle_driver *drv) { int i; @@ -179,8 +179,6 @@ static int __cpuidle_driver_init(struct cpuidle_driver *drv) drv->bctimer = 1; break; } - - return 0; } /** @@ -206,9 +204,7 @@ static int __cpuidle_register_driver(struct cpuidle_driver *drv) if (cpuidle_disabled()) return -ENODEV; - ret = __cpuidle_driver_init(drv); - if (ret) - return ret; + __cpuidle_driver_init(drv); ret = __cpuidle_set_driver(drv); if (ret)