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: 1204481 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5C4923FC8E for ; Tue, 17 Jul 2012 10:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755151Ab2GQKKa (ORCPT ); Tue, 17 Jul 2012 06:10:30 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:40793 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755090Ab2GQKK3 (ORCPT ); Tue, 17 Jul 2012 06:10:29 -0400 Received: by mail-pb0-f46.google.com with SMTP id rp8so572264pbb.19 for ; Tue, 17 Jul 2012 03:10:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=VDE8bQQefL8LxSioLT1B2LdgVngcT2ckZ81XwvuXo6U=; b=MW1gpFjwJpKU6K3fJ1jWDqbhGbrbyPAi3uRcK2Q1gOB24qGqKueSOUo4Ca6H5zYon5 UiTrtWHltzgpDIdYSXOb35ePGaOqIRdsTfKL/jetijdR7MBMhiGWcDHw3VLj8KUpBxHl McMe7rB1N59U1tHuAg7wRE/SJKubWfFw8djQ2OVRzBEXPpbeYE0KX2mXjq0YIHycMXbv tRQoPI34uZIGFa8gRUYWMnO38WwrfmQVEsxObeeLKXyYVbdiahzlzhpSYuRLTR0m8Fh6 oA2uw2eGvoC/HjkFo8+6mrVZ+7x5KbXzpfGOpPPMcLAq68dgXeIMN5Rf81T24W/x0b4k Y5UQ== 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: ALoCoQnxr9E3iHZnHiSI5YjEahfy43jQQJ7iYREKyA1H7WeLm8jd81kSDQ1MUSJLacRKr1Ixx5IG Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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,