Skip to content
Commit bd70f6eb authored by Paul Walmsley's avatar Paul Walmsley
Browse files

ARM: OMAP2+: powerdomain: avoid testing whether an unsigned char is less than 0



_pwrdm_save_clkdm_state_and_activate() tried to test one of its
unsigned arguments to determine whether it was less than zero.  Fix by
moving the error test to the caller.

Reported-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent 4280943b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment