From patchwork Thu Oct 3 15:56:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 20794 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6B6C325CAB for ; Thu, 3 Oct 2013 15:57:36 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id u18sf4978721qcx.10 for ; Thu, 03 Oct 2013 08:57:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state: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=GcCeqXsQgUoQqaPkcKCJQQcxNxvHnPZZCvvWGfi/3KI=; b=LrCh2tv0jUv7lldlZ7OuLqUbQBTMyzn0/1CXQ5XhamlJNO135JQBr7t0sBTM/pqt9X ICQjdBTuK1SgrHqPscrzl+YojB5jncmoTId7VO1EbAoiRRQ+JsaVD5oBL7XwKlLmfPEf zecVdt1N4fc6Gru4U89zu5IN5fESrUfnhNnUIOUc/zjNnwOvwX6QZZAAnIHBDWLLJ19S xX/sSUBmII8Y1XDEiE5/hlKNTzx08HQHR424Pnlz8SKQ41DNLfv0SipMSn4FmybLuVnL Afmj40kKbnNGDItwen/moZEy9tlUexkUkb0Gm/61LO6vmUlbPb5xM1e7OOTxnd/RkSmw 2apA== X-Received: by 10.236.4.69 with SMTP id 45mr8654216yhi.20.1380815856249; Thu, 03 Oct 2013 08:57:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.161 with SMTP id kv1ls1059108qeb.10.gmail; Thu, 03 Oct 2013 08:57:36 -0700 (PDT) X-Received: by 10.58.108.74 with SMTP id hi10mr8173040veb.14.1380815856140; Thu, 03 Oct 2013 08:57:36 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id d9si1883861vee.85.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id p13so1630788vbe.5 for ; Thu, 03 Oct 2013 08:57:36 -0700 (PDT) X-Gm-Message-State: ALoCoQnwYIaocgUEG++R806DecCbNZzjvFeiX6DczqRcWQcpipGEJn6vHCBExeMcV7U7ycAHuRCq X-Received: by 10.52.230.35 with SMTP id sv3mr1740577vdc.27.1380815856046; Thu, 03 Oct 2013 08:57:36 -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 u4csp189175vcz; Thu, 3 Oct 2013 08:57:35 -0700 (PDT) X-Received: by 10.66.147.230 with SMTP id tn6mr10229089pab.135.1380815854951; Thu, 03 Oct 2013 08:57:34 -0700 (PDT) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id lm10si6803269pab.237.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kp14so2785308pab.20 for ; Thu, 03 Oct 2013 08:57:34 -0700 (PDT) X-Received: by 10.66.219.233 with SMTP id pr9mr10257481pac.45.1380815854561; Thu, 03 Oct 2013 08:57:34 -0700 (PDT) Received: from localhost ([122.167.152.64]) by mx.google.com with ESMTPSA id ef10sm11598951pac.1.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Oct 2013 08:57:33 -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 V2 05/16] cpuidle: make __cpuidle_driver_init() return void Date: Thu, 3 Oct 2013 21:26:44 +0530 Message-Id: <76a7716af29237a2d5890b0020223cec31cc8b9f.1380815504.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.212.46 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 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/cpuidle/driver.c b/drivers/cpuidle/driver.c index 25455e8..ebc6b0f 100644 --- a/drivers/cpuidle/driver.c +++ b/drivers/cpuidle/driver.c @@ -149,10 +149,8 @@ static void cpuidle_setup_broadcast_timer(void *arg) /** * __cpuidle_driver_init - initialize the driver's internal data * @drv: a valid pointer to a struct cpuidle_driver - * - * 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 +177,6 @@ static int __cpuidle_driver_init(struct cpuidle_driver *drv) drv->bctimer = 1; break; } - - return 0; } /** @@ -206,9 +202,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)