From patchwork Thu Jun 27 11:08:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: naresh.bhat@linaro.org X-Patchwork-Id: 18151 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7FA8223910 for ; Thu, 27 Jun 2013 11:08:50 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id n1sf929494qcx.3 for ; Thu, 27 Jun 2013 04:08:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:mime-version: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:content-type :content-transfer-encoding; bh=BC2bacsKgOOPSRZ3lFlbTEQOFv78+grswzrLrung/bA=; b=EPsIJseHBnJytqp2HmGHIDbRaFIvbhQl5FCtOerqvdihDeJlG+JbpESOcChyaZIn3f DfM6WsgTeTLFAN76R6qygff4cWPuanIgOjVEF8RT/v0cFUems9fwqQ6ygGCcqrRSMFn4 1c5ujECCg7qTs4O65yBWtHfY7sr6EAK3f6Or5j/57HT55FH3bhwTOszwhMtx3khfnnpi /kwbrZawYNrBTF6KcAiasQN5xT2qP6lteIjGu98VrsJeTf0ecYE4R0zp5vp6lwWiGuGO A4Zte/KzEpaYllN+YrJXNbGYnbZqIn74sihapRHitJuHZt3jQJfo77V5EpMA8Xbisz+S HvVA== X-Received: by 10.224.59.205 with SMTP id m13mr8494049qah.7.1372331329990; Thu, 27 Jun 2013 04:08:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.227 with SMTP id kp3ls792496qeb.19.gmail; Thu, 27 Jun 2013 04:08:49 -0700 (PDT) X-Received: by 10.221.4.4 with SMTP id oa4mr3274086vcb.70.1372331329879; Thu, 27 Jun 2013 04:08:49 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id 9si648933vci.30.2013.06.27.04.08.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 04:08:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jz10so515057veb.17 for ; Thu, 27 Jun 2013 04:08:49 -0700 (PDT) X-Received: by 10.220.53.7 with SMTP id k7mr3246273vcg.52.1372331329377; Thu, 27 Jun 2013 04:08:49 -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.165.8 with SMTP id yu8csp143520veb; Thu, 27 Jun 2013 04:08:48 -0700 (PDT) X-Received: by 10.68.201.66 with SMTP id jy2mr5432718pbc.90.1372331328335; Thu, 27 Jun 2013 04:08:48 -0700 (PDT) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by mx.google.com with ESMTPS id l2si696005pan.286.2013.06.27.04.08.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 04:08:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.42 is neither permitted nor denied by best guess record for domain of naresh.bhat@linaro.org) client-ip=209.85.220.42; Received: by mail-pa0-f42.google.com with SMTP id rl6so912752pac.1 for ; Thu, 27 Jun 2013 04:08:48 -0700 (PDT) X-Received: by 10.68.239.66 with SMTP id vq2mr5468416pbc.182.1372331327895; Thu, 27 Jun 2013 04:08:47 -0700 (PDT) Received: from Latitude-E6430.mvista.com ([115.119.134.194]) by mx.google.com with ESMTPSA id p2sm3265965pag.22.2013.06.27.04.08.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 04:08:47 -0700 (PDT) From: naresh.bhat@linaro.org To: linux-acpi@vger.kernel.org Cc: len.brown@intel.com, patches@linaro.org, linaro-kernel@lists.linaro.org, naresh.bhat@linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI/fan: Initialize acpi_state variable Date: Thu, 27 Jun 2013 16:38:34 +0530 Message-Id: <1372331314-31010-1-git-send-email-naresh.bhat@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlDbJ3F2wmQIWagRv/5SZR/b48k7PHLw64+r9j+MNkQSPtVOJEeGiOj8pxR9WVomkoZLegb X-Original-Sender: naresh.bhat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 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: , From: Naresh Bhat CC drivers/acpi/fan.o drivers/acpi/fan.c: In function ‘fan_get_cur_state’: drivers/acpi/fan.c:96:9: warning: ‘acpi_state’ may be used uninitialized in this function [-Wuninitialized] --- drivers/acpi/fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index f815da8..f61f7fd 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c @@ -84,7 +84,7 @@ static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long { struct acpi_device *device = cdev->devdata; int result; - int acpi_state; + int acpi_state = 0; if (!device) return -EINVAL;