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: 2453791 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 55396DFB79 for ; Wed, 17 Apr 2013 13:33:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966219Ab3DQNdC (ORCPT ); Wed, 17 Apr 2013 09:33:02 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:47688 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966320Ab3DQNdB (ORCPT ); Wed, 17 Apr 2013 09:33:01 -0400 Received: by mail-wi0-f174.google.com with SMTP id m6so2637070wiv.13 for ; Wed, 17 Apr 2013 06:33:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=OyhHRz1r0r6yxF8gaNyoM8Yrt7kiduvZUC2IhnHpSmg=; b=n6g0PWKE2Q8Jp1jQZMZNf6CZb0Pc26u1DjXJsJIwuKyARdrCXiXqF/kSb7Dq9PyiRq vYmh2U8LysNnnxwSH0qA5meGJZuw+fvvi9C7OFg6Q9s3AGIpc6EBSFM9lT597DWfAFJu XeC5XksEkkcFGwT2RwxXMX4YiKDqXe6MhZMPVoVf9Y04h2Y1xm8eDvWN+83DNOnVC8RY GA4yGPQssvalRaAyDbJDpFVKX/IYj3EGYYjNwmFt5pHV91IFWqtJb9imQiIZL7a26W4r jMjSWPOhgiQage4lUrB8gIqsDR+eo+HLJVlhetko5ANDKH2bV1t6b7fYUGCcG8YXzxWx Yz1w== 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: ALoCoQkX1kfE5HHibOFc1lXFiSTP62QRHJpveL+18BD4BmwED6pVlV0GIaE7/4CRWIHTy4j3uZ7k Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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++];