diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-07-17 22:38:18 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-19 00:02:30 +0200 |
commit | 83618092645f970668f47b6ee2fec1afdca32efd (patch) | |
tree | 23bec7be48f710b5bc5f5131c88074f3fdf17597 | |
parent | 84a1caf1453c3d44050bd22db958af4a7f99315c (diff) | |
download | op-kernel-dev-83618092645f970668f47b6ee2fec1afdca32efd.zip op-kernel-dev-83618092645f970668f47b6ee2fec1afdca32efd.tar.gz |
PM / QoS: Use NULL pointer instead of plain integer in pm_qos.h
Fix the following sparse warning:
include/linux/pm_qos.h:69:28: warning: Using plain integer as NULL pointer
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
-rw-r--r-- | 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, |