From patchwork Tue Jul 17 10:09:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10042 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B71BB23F08 for ; Tue, 17 Jul 2012 10:10:28 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8024BA18609 for ; Tue, 17 Jul 2012 10:10:28 +0000 (UTC) Received: by ggnf1 with SMTP id f1so187752ggn.11 for ; Tue, 17 Jul 2012 03:10:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=SJy6MMbXfjAIMtQbJ9JCDlsv3g62GPkzZ3zw2odN5Vs=; b=VRwLhnHHtUBw4GiLNP9EPvELpTs0HLOVKWV0J7e5RN/aa+Fr5nAuCLBTOoC4jHcsIH q2WU9L+U4xE/MApno+UPicdEi41/SzZeF24rdLym4VhZy+q4yg+X54l6jDWJNx4BUciU d6m0nM0gTQNmSinNc7A//y8JFX4bb2Q1C7jV+ijYRk/fg6NdY59herfEiIzoAVPm8HrG rEIxbmuz/FI25b6dwJLIuTzv1RYFPHqJYAqAl5LTEk59KJrAR/YmDy7xDHkE61Uw0GdC ER6uE/Q40uWi5ROeQUfYDBVWPTGcc38HjofFpthCy5ut64EwnwUSkfBHkQ67W+XNsVZK tE/g== Received: by 10.50.160.198 with SMTP id xm6mr850374igb.0.1342519827863; Tue, 17 Jul 2012 03:10:27 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.241.2 with SMTP id lc2csp17301ibb; Tue, 17 Jul 2012 03:10:27 -0700 (PDT) Received: by 10.68.223.198 with SMTP id qw6mr5077507pbc.94.1342519826977; Tue, 17 Jul 2012 03:10:26 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id go9si32805136pbc.127.2012.07.17.03.10.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 03:10:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id rr4so708948pbb.37 for ; Tue, 17 Jul 2012 03:10:26 -0700 (PDT) Received: by 10.68.238.232 with SMTP id vn8mr5107033pbc.78.1342519826697; Tue, 17 Jul 2012 03:10:26 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wf7sm13772428pbc.34.2012.07.17.03.10.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 03:10:26 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: rjw@sisk.pl, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/3] PM: QoS: Use NULL pointer instead of plain integer in qos.c Date: Tue, 17 Jul 2012 15:39:55 +0530 Message-Id: <1342519796-19324-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1342519796-19324-1-git-send-email-sachin.kamat@linaro.org> References: <1342519796-19324-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmdKHu+J2/aLgX/TRitx+vF1BAI7kAQHfVK2LyFOPmavzcoWciWBMiIWx5J4+uIaGcYmj4d Fixes the following sparse warning: drivers/base/power/qos.c:465:29: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat --- drivers/base/power/qos.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c index fd849a2..74a67e0 100644 --- a/drivers/base/power/qos.c +++ b/drivers/base/power/qos.c @@ -462,7 +462,7 @@ EXPORT_SYMBOL_GPL(dev_pm_qos_add_ancestor_request); static void __dev_pm_qos_drop_user_request(struct device *dev) { dev_pm_qos_remove_request(dev->power.pq_req); - dev->power.pq_req = 0; + dev->power.pq_req = NULL; } /**