]> rtime.felk.cvut.cz Git - linux-imx.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)
commitbd70f6eb3e78b7c9c6bec2cf5be6423dd2b37f6f
treebd17d657905a7ea1a76c6b0874c95814ff8054cb
parent4280943b6bc81357eb61c3e1111d2d83ec2ef03d
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