From patchwork Thu Jul 30 07:10:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 6898941 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A72479F38B for ; Thu, 30 Jul 2015 07:10:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DADBB20570 for ; Thu, 30 Jul 2015 07:10:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED8C42056D for ; Thu, 30 Jul 2015 07:10:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbbG3HKv (ORCPT ); Thu, 30 Jul 2015 03:10:51 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35122 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbbG3HKu (ORCPT ); Thu, 30 Jul 2015 03:10:50 -0400 Received: by pabkd10 with SMTP id kd10so18790296pab.2 for ; Thu, 30 Jul 2015 00:10:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=NUIVB0a4ew27kkiTyGOPaZfRSJsjYhD3fKlCqn3xlEk=; b=UF3DkWXROOT/CCcb7P5gYfnjXeLaXyySf72R600E1DYmKLtIdoAxjEo6mDaXB9GJsQ Hczffolwq+tsLAhg9kCzHDOqihx9jVM2lUFshc7Mo/saSJv5wOgiAAtuWMu/PzoSWheX kBAtf0cnBBhKkivzPV3kDOqVBIsHTXq2plzJDdbSiIr5jGbplnBqqopFQr4DDlahoSCX LT61Weg29CqVF2Z4wta4r5MBES/uoqOidvbMEkq4IBBWyjZlYEPGYrMsv/FQ4X5P0TH1 vAnCrIzajhq/+tqJES4BKgVDmCum7TT/Pa1RlNhA17K0r3CAgul17QwIKDj19l9eRafM 8xGA== X-Gm-Message-State: ALoCoQkCmvx9E0cTPMAV5AffsdU7x0hH7w0n4THiWJsGkvkvTGVkJmGXMl7Y8udS63IoRr5x9Vd5 X-Received: by 10.66.231.69 with SMTP id te5mr102343758pac.98.1438240250178; Thu, 30 Jul 2015 00:10:50 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id oq10sm274515pdb.75.2015.07.30.00.10.48 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 30 Jul 2015 00:10:49 -0700 (PDT) From: Viresh Kumar To: edubezval@gmail.com Cc: linaro-kernel@lists.linaro.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, radivoje.jovanovic@linux.intel.com, punit.agrawal@arm.com, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/6] thermal/cpu_cooling: No need to initialize max_freq to 0 Date: Thu, 30 Jul 2015 12:40:30 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Its always set before getting used, don't initialize it. Signed-off-by: Viresh Kumar --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index 6509c61b9648..d010c6d0d722 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -215,7 +215,7 @@ static int cpufreq_thermal_notifier(struct notifier_block *nb, unsigned long event, void *data) { struct cpufreq_policy *policy = data; - unsigned long max_freq = 0; + unsigned long max_freq; struct cpufreq_cooling_device *cpufreq_dev; switch (event) {