Message ID | af4a4b1ed4accda9100e00b82a1f46f8af6e507d.1438239727.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBAE446WQKGQEM4OITMA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 137AD22DB5 for <linaro@patches.linaro.org>; Thu, 30 Jul 2015 07:10:58 +0000 (UTC) Received: by lahh5 with SMTP id h5sf9283238lah.0 for <linaro@patches.linaro.org>; Thu, 30 Jul 2015 00:10: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 :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Z1L/r6VJtQY4mQon4suWeGF3dvE0xIHPvBYcsw5x6yY=; b=BpvKByv5eAoA6mxCmvR0Qbcj5V/nhRt7qSxn7DA4ZVIJUMXm4wEBxkLClh3HLE1s8G xer9USlshFgOHuEW8St9Hdpd4dcIY0d+PbyLki+ZYFFITzmwAdAnsPNo6APwWKa59b0m 85pa83w7bgKqIve5ZPUh5TuDjZcD9IOACHB09K85GBKLsjH+lkqV7bzcKvoUwFNdyoEH 8A1/ENS5yx343LAIaOaVVH+oF6JmmETxyKXpCiVPxOT0P/VNUyaDt4sgGLqKFeA4kFs0 maB6OdRLLfBnompRVrD7lP4J6kCVK/XzKB3xda3WC1UCS5PQlOokCBPpY9svyVoF/kvc GYIw== X-Gm-Message-State: ALoCoQlyTnyISkojC/IzK499eKwNEEABMyvNsK5oLBtlb8ogbeZh7f4d7u9fL1lJ2/4jmAvOFryl X-Received: by 10.180.106.10 with SMTP id gq10mr581153wib.0.1438240256786; Thu, 30 Jul 2015 00:10:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.101 with SMTP id z5ls131895laz.65.gmail; Thu, 30 Jul 2015 00:10:56 -0700 (PDT) X-Received: by 10.152.22.99 with SMTP id c3mr43829030laf.32.1438240256369; Thu, 30 Jul 2015 00:10:56 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id lf12si113736lac.25.2015.07.30.00.10.56 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 00:10:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by laah7 with SMTP id h7so19585238laa.0 for <patchwork-forward@linaro.org>; Thu, 30 Jul 2015 00:10:56 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr42085691lbc.112.1438240255987; Thu, 30 Jul 2015 00:10:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp361475lba; Thu, 30 Jul 2015 00:10:54 -0700 (PDT) X-Received: by 10.66.190.168 with SMTP id gr8mr103433020pac.22.1438240253302; Thu, 30 Jul 2015 00:10:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id na2si284737pdb.130.2015.07.30.00.10.51; Thu, 30 Jul 2015 00:10:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbbG3HKv (ORCPT <rfc822;pi-cheng.chen@linaro.org> + 12 others); 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 <rfc822;linux-pm@vger.kernel.org>); Thu, 30 Jul 2015 03:10:50 -0400 Received: by pabkd10 with SMTP id kd10so18790296pab.2 for <linux-pm@vger.kernel.org>; Thu, 30 Jul 2015 00:10:50 -0700 (PDT) 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 <viresh.kumar@linaro.org> 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 <viresh.kumar@linaro.org>, 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: <af4a4b1ed4accda9100e00b82a1f46f8af6e507d.1438239727.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: <cover.1438239727.git.viresh.kumar@linaro.org> References: <cover.1438239727.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1438239727.git.viresh.kumar@linaro.org> References: <cover.1438239727.git.viresh.kumar@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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) {
Its always set before getting used, don't initialize it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> --- drivers/thermal/cpu_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)