Message ID | 1372328929-732-1-git-send-email-naresh.bhat@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCE6FQF35EDBB35HWCHAKGQEZAY7MLA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 40D2223910 for <linaro@patches.linaro.org>; Thu, 27 Jun 2013 10:29:04 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf765571ghr.9 for <linaro@patches.linaro.org>; Thu, 27 Jun 2013 03:29:03 -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=gPetCnOzzXWpIc0DaerOd9Z7LLABNJyQQ42pvUeENHIiYJsOroVUMJZ46AS2ZOK2Ki IqlohnxMEN1H3sfSkqTd9aF/8D19K/zaF/BVGvrQuDum3dznA1R9qPeRXUM3TQ3j5trb L7O9JLQSPLJcpwIYmFFU93DioudN37Pnm6cI2mmOXlnrmEpr5NmMHsIjTS826o7hL2cQ B8jzq4sbPGZ0GnTA6yRAzqaShPE868gy+TTHV9heBNhIM6VW53XFut8OYrOQRmlNbrmv ogkK8U0DMtO49cRCo8//O1TuW8x5Jia4U51/nvGSuWc5M0xAgTHT34qCQKRTubVrwx8d cIlQ== X-Received: by 10.236.140.201 with SMTP id e49mr4588515yhj.33.1372328943385; Thu, 27 Jun 2013 03:29:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.122.6 with SMTP id lo6ls796210qeb.63.gmail; Thu, 27 Jun 2013 03:29:03 -0700 (PDT) X-Received: by 10.52.100.166 with SMTP id ez6mr2774514vdb.19.1372328943188; Thu, 27 Jun 2013 03:29:03 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id tk7si309708vdc.13.2013.06.27.03.29.02 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 03:29:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id m17so196011vca.23 for <patchwork-forward@linaro.org>; Thu, 27 Jun 2013 03:29:02 -0700 (PDT) X-Received: by 10.52.77.5 with SMTP id o5mr2742419vdw.46.1372328942854; Thu, 27 Jun 2013 03:29:02 -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 yu8csp142334veb; Thu, 27 Jun 2013 03:29:02 -0700 (PDT) X-Received: by 10.66.154.225 with SMTP id vr1mr5314095pab.85.1372328941803; Thu, 27 Jun 2013 03:29:01 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id qo10si1185855pbc.178.2013.06.27.03.29.01 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 03:29:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of naresh.bhat@linaro.org) client-ip=209.85.220.50; Received: by mail-pa0-f50.google.com with SMTP id fb1so863865pad.37 for <patches@linaro.org>; Thu, 27 Jun 2013 03:29:01 -0700 (PDT) X-Received: by 10.68.170.97 with SMTP id al1mr5350832pbc.0.1372328941289; Thu, 27 Jun 2013 03:29:01 -0700 (PDT) Received: from Latitude-E6430.mvista.com ([115.119.134.194]) by mx.google.com with ESMTPSA id v7sm2544798pbq.32.2013.06.27.03.28.58 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 03:29:00 -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 Subject: [PATCH] ACPI/fan: Initialize acpi_state variable Date: Thu, 27 Jun 2013 15:58:49 +0530 Message-Id: <1372328929-732-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: ALoCoQnTX3fYhq2OAK/QkC5RgazS6Pp7FTC2E2pivnirvTn1P8HRCEFph1KtdtRPF1RrVPUfvw5q X-Original-Sender: naresh.bhat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 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: <patchwork-forward.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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
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;
From: Naresh Bhat <naresh.bhat@linaro.org> 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(-)