]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: powerdomain: avoid testing whether an unsigned char is less than 0
authorPaul Walmsley <paul@pwsan.com>
Mon, 1 Apr 2013 02:22:22 +0000 (20:22 -0600)
committerPaul Walmsley <paul@pwsan.com>
Mon, 1 Apr 2013 02:22:22 +0000 (20:22 -0600)
commit23e77291227eefe3c867f142bff74b6637ff4ec3
treebd17d657905a7ea1a76c6b0874c95814ff8054cb
parent878a2b18b74b003772ec4902ce2cf9f1a916b4f6
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>
arch/arm/mach-omap2/powerdomain.c