From patchwork Thu Jun 27 19:47:43 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: 18173 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B971825E0D for ; Thu, 27 Jun 2013 19:48:02 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id b12sf958953wgh.2 for ; Thu, 27 Jun 2013 12:48:01 -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=f/7mRg/Am9csRFCBO/UTI+Nb6Y439h1IBv8PCogMllc=; b=czNYlEKVi404EZgZ9973K7MnbR21yfk56SlQuGQlYBLKq0SbEJy8bt3NoB8KQLo9Kk Wl0Dop+MLTdq5CG+WPm+lkGGPWxuuOmYPa8WyN/Ed55j9XKhqXvh+33WwCZm4t9mASYE X3xKiXnGWr1XS6uxISnzQWKlqVHhFcJ3PlcQbdG/4x8ITuldhMcZFOA/VRdJ0wDqdhW/ 1JskKOyf9kp4od+lf5WOQ8tn1DfAzyalQBU2HPC/B86O4SD/oBjOB6BInytA4/ty1Gre gdbJtrRjuIlM9UFQzu8qm6aHkp+x+snUwEBAUihIF8UZY4wGmOkGAJ1+CcpR94x8TIcf 8vPg== X-Received: by 10.180.88.104 with SMTP id bf8mr124921wib.3.1372362481508; Thu, 27 Jun 2013 12:48:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.76.110 with SMTP id j14ls21953wiw.51.canary; Thu, 27 Jun 2013 12:48:01 -0700 (PDT) X-Received: by 10.180.39.236 with SMTP id s12mr182132wik.14.1372362481055; Thu, 27 Jun 2013 12:48:01 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id pq10si1559438wjc.159.2013.06.27.12.48.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 12:48:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 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.176; Received: by mail-ve0-f176.google.com with SMTP id c13so1118076vea.35 for ; Thu, 27 Jun 2013 12:48:00 -0700 (PDT) X-Received: by 10.220.83.69 with SMTP id e5mr1556868vcl.53.1372362480002; Thu, 27 Jun 2013 12:48:00 -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 yu8csp162411veb; Thu, 27 Jun 2013 12:47:59 -0700 (PDT) X-Received: by 10.66.221.101 with SMTP id qd5mr7655257pac.174.1372362479132; Thu, 27 Jun 2013 12:47:59 -0700 (PDT) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by mx.google.com with ESMTPS id l2si1607712pan.170.2013.06.27.12.47.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 12:47:59 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.169 is neither permitted nor denied by best guess record for domain of naresh.bhat@linaro.org) client-ip=209.85.192.169; Received: by mail-pd0-f169.google.com with SMTP id y10so582365pdj.28 for ; Thu, 27 Jun 2013 12:47:58 -0700 (PDT) X-Received: by 10.66.234.71 with SMTP id uc7mr7679628pac.10.1372362478629; Thu, 27 Jun 2013 12:47:58 -0700 (PDT) Received: from localhost.localdomain ([117.192.232.233]) by mx.google.com with ESMTPSA id kq2sm5111792pab.19.2013.06.27.12.47.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 12:47:57 -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, rjw@sisk.pl Subject: [PATCH] ACPI/fan: Initialize acpi_state variable Date: Fri, 28 Jun 2013 01:17:43 +0530 Message-Id: <1372362463-4186-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: ALoCoQmkuqS5OpoYdst1vHoav5vswI/b4Jfzx/wS1uTtlN1FkXAGTwve+PM2AA4pMOTscbAEE7DK X-Original-Sender: naresh.bhat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 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..f961435 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 = ACPI_STATE_D0; if (!device) return -EINVAL;