Skip to content

Commit

Permalink
PM / QoS: Add return code to pm_qos_get_value function.
Browse files Browse the repository at this point in the history
pm_qos_get_value don't return a return code in all cases. It's sure that
anything interesting happend after BUG() but this prevent any compilation
warning.

[rjw: Chaneged the new return value to PM_QOS_DEFAULT_VALUE.]

Signed-off-by: Luis Gonzalez Fernandez <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
luisgf authored and rjwysocki committed Sep 7, 2012
1 parent 4cbe5a5 commit c6a57bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/power/qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ static inline int pm_qos_get_value(struct pm_qos_constraints *c)
default:
/* runtime check for not using enum */
BUG();
return PM_QOS_DEFAULT_VALUE;
}
}

Expand Down

0 comments on commit c6a57bf

Please sign in to comment.