From patchwork Tue Jul 17 10:09:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10043 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 1C4B623F08 for ; Tue, 17 Jul 2012 10:10:31 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id D9492A182A2 for ; Tue, 17 Jul 2012 10:10:30 +0000 (UTC) Received: by ghbz12 with SMTP id z12so185706ghb.11 for ; Tue, 17 Jul 2012 03:10:30 -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=VDE8bQQefL8LxSioLT1B2LdgVngcT2ckZ81XwvuXo6U=; b=juG3gjz4C1n5aiMElPmWKRxufKLoETi3kPZAk4iriE0m9fvLrV0AtAg9Lp7bIEX63p EBeQkU8M41M5TltazSF9/h7cs+Azp6itYtCeNVD4PfYYR/fMW8xMCnghY/xs0NNMEIhM DrU+3lN13UugirapdhHTpccyz1F8H9KujajaOKX5RocxnT/TqcdVtzxFfsiajKm6kDqq 0jWQ85aOHodEPLimccspAh7v2SGqdye45U8jzWjBql/jFMqXE1Z+ZVFgIUnCt0tLXX1k GBq/2vqOUzF3LIdXJGrr9s+wh9vON+99TCk7zrSRqeVGQ+XjGuJaZrO2cvkawzx5sHYG xoMQ== Received: by 10.50.163.99 with SMTP id yh3mr768304igb.53.1342519830291; Tue, 17 Jul 2012 03:10:30 -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 lc2csp17304ibb; Tue, 17 Jul 2012 03:10:29 -0700 (PDT) Received: by 10.68.221.38 with SMTP id qb6mr4896771pbc.144.1342519829614; Tue, 17 Jul 2012 03:10:29 -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.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 03:10:29 -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:29 -0700 (PDT) Received: by 10.68.217.40 with SMTP id ov8mr5020198pbc.131.1342519829356; Tue, 17 Jul 2012 03:10:29 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wf7sm13772428pbc.34.2012.07.17.03.10.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 03:10:28 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: rjw@sisk.pl, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 3/3] PM: QoS: Use NULL pointer instead of plain integer in pm_qos.h Date: Tue, 17 Jul 2012 15:39:56 +0530 Message-Id: <1342519796-19324-3-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: ALoCoQkDjvxN9odjHx81SCf3U0qCnHYstqsvXI5SUBbpCKfOeXD+VOBs+OqrepqS024iVaLZvi4R Fixes the following sparse warning: include/linux/pm_qos.h:69:28: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat --- include/linux/pm_qos.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 233149c..9924ea1 100644 --- a/include/linux/pm_qos.h +++ b/include/linux/pm_qos.h @@ -66,7 +66,7 @@ enum pm_qos_req_action { static inline int dev_pm_qos_request_active(struct dev_pm_qos_request *req) { - return req->dev != 0; + return req->dev != NULL; } int pm_qos_update_target(struct pm_qos_constraints *c, struct plist_node *node,