Skip to content

Commit

Permalink
PM / QoS: Use NULL pointer instead of plain integer in pm_qos.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Rafael J. Wysocki committed Jul 18, 2012
1 parent 84a1caf commit 8361809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pm_qos.h
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 8361809

Please sign in to comment.