From patchwork Wed Apr 17 13:32:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 16166 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 786AA23911 for ; Wed, 17 Apr 2013 13:33:40 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id b14sf380386qcs.0 for ; Wed, 17 Apr 2013 06:33:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=OyhHRz1r0r6yxF8gaNyoM8Yrt7kiduvZUC2IhnHpSmg=; b=Zb54CF+Oe9K0S/MunYPHwv/5l+HWSIEGyxrKQNIdSN5EhrLE2D7l/VMtVviccD9Ztg Fuz5E3GM8t7lUEOyG3sad7QBlERj7cKyGqEKTfcN/jV9pgYlIjmV8PoyN5Odjei0A3o3 i81z8EgzKf48SOFvUV1FGA1LliJtggK8iBZa7cANPAif3dvThkQhm9yCAJAfXich6NLn 3Z3YFqWYhyAXfSSReo8ctcdEh30DCg3bqAAjLFTdYlH3ZmncD4n9I8ljbUUlhuOqtWpq dWla9ORLLH2KhWtIqnvnOky6WLHqKjS6jjyT3cVNAQvcLZ+TAsKPsZ9KjpEZAIEwirqN ZUsg== X-Received: by 10.236.89.65 with SMTP id b41mr3147191yhf.49.1366205585395; Wed, 17 Apr 2013 06:33:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.60.5 with SMTP id d5ls912657qer.10.gmail; Wed, 17 Apr 2013 06:33:05 -0700 (PDT) X-Received: by 10.58.144.170 with SMTP id sn10mr400566veb.7.1366205585152; Wed, 17 Apr 2013 06:33:05 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id os3si3902679vcb.69.2013.04.17.06.33.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 06:33:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id ha12so1300433vcb.16 for ; Wed, 17 Apr 2013 06:33:05 -0700 (PDT) X-Received: by 10.52.163.231 with SMTP id yl7mr4141379vdb.57.1366205585017; Wed, 17 Apr 2013 06:33:05 -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.58.127.98 with SMTP id nf2csp73786veb; Wed, 17 Apr 2013 06:33:01 -0700 (PDT) X-Received: by 10.194.81.71 with SMTP id y7mr11397976wjx.19.1366205580546; Wed, 17 Apr 2013 06:33:00 -0700 (PDT) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [2a00:1450:400c:c03::230]) by mx.google.com with ESMTPS id o17si5913435wij.41.2013.04.17.06.33.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 06:33:00 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::230 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::230; Received: by mail-we0-f176.google.com with SMTP id s43so1175161wey.7 for ; Wed, 17 Apr 2013 06:33:00 -0700 (PDT) X-Received: by 10.194.109.35 with SMTP id hp3mr11467967wjb.15.1366205579966; Wed, 17 Apr 2013 06:32:59 -0700 (PDT) Received: from mai.home (AToulouse-654-1-349-85.w90-55.abo.wanadoo.fr. [90.55.188.85]) by mx.google.com with ESMTPS id ej8sm25556799wib.9.2013.04.17.06.32.58 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Apr 2013 06:32:58 -0700 (PDT) From: Daniel Lezcano To: lethal@linux-sh.org, rjw@sisk.pl Cc: linux-sh@vger.kernel.org, linux-pm@vger.kernel.org, patches@linaro.org Subject: [PATCH 1/4] SH: cpuidle: remove pointless initialization Date: Wed, 17 Apr 2013 15:32:54 +0200 Message-Id: <1366205577-11632-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnOFKlp6mJyYcz+tDTBzJ/TDB/8xI2Yg810aIEBIbdI+J0Hl9hkIFzDB8T2IDKqUIFv7WZm X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 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: , The driver is a global static variable automatically initialized to zero. Removing the useless initialization in the init function. Signed-off-by: Daniel Lezcano Acked-by: Simon Horman --- arch/sh/kernel/cpu/shmobile/cpuidle.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/sh/kernel/cpu/shmobile/cpuidle.c b/arch/sh/kernel/cpu/shmobile/cpuidle.c index 0986f21..5b44af9 100644 --- a/arch/sh/kernel/cpu/shmobile/cpuidle.c +++ b/arch/sh/kernel/cpu/shmobile/cpuidle.c @@ -64,12 +64,6 @@ void sh_mobile_setup_cpuidle(void) struct cpuidle_state *state; int i; - - for (i = 0; i < CPUIDLE_STATE_MAX; i++) { - drv->states[i].name[0] = '\0'; - drv->states[i].desc[0] = '\0'; - } - i = CPUIDLE_DRIVER_STATE_START; state = &drv->states[i++];