commit | bd70f6eb3e78b7c9c6bec2cf5be6423dd2b37f6f | [log] [tgz] |
---|---|---|
author | Paul Walmsley <paul@pwsan.com> | Sun Mar 31 20:22:22 2013 -0600 |
committer | Paul Walmsley <paul@pwsan.com> | Sun Mar 31 20:22:22 2013 -0600 |
tree | bd17d657905a7ea1a76c6b0874c95814ff8054cb | |
parent | 4280943b6bc81357eb61c3e1111d2d83ec2ef03d [diff] |
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: Chen Gang <gang.chen@asianux.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>