From: Sachin Kamat Date: Tue, 17 Jul 2012 20:38:18 +0000 (+0200) Subject: PM / QoS: Use NULL pointer instead of plain integer in pm_qos.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=83618092645f970668f47b6ee2fec1afdca32efd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/include/linux/pm_qos.h b/include/linux/pm_qos.h index 233149cb19f4..9924ea1f22e0 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,