mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
PM / QoS: Add return code to pm_qos_get_value function.
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 <luisgf@gmail.com> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
parent
4cbe5a555f
commit
c6a57bfffe
1 changed files with 1 additions and 0 deletions
|
@ -139,6 +139,7 @@ static inline int pm_qos_get_value(struct pm_qos_constraints *c)
|
||||||
default:
|
default:
|
||||||
/* runtime check for not using enum */
|
/* runtime check for not using enum */
|
||||||
BUG();
|
BUG();
|
||||||
|
return PM_QOS_DEFAULT_VALUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue