diff options
author | Felipe Balbi <balbi@ti.com> | 2012-02-29 23:33:47 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2012-03-05 11:29:27 -0800 |
commit | d617369219f136dc6e7923f573d826c7afb4b269 (patch) | |
tree | afe3e8dcb0963f5e0c1424083c594e5a556cea6f /arch/arm/mach-omap2 | |
parent | 4018bfebc6e704838f1a9f1d96110d9bd68ae0f9 (diff) | |
download | blackbird-op-linux-d617369219f136dc6e7923f573d826c7afb4b269.tar.gz blackbird-op-linux-d617369219f136dc6e7923f573d826c7afb4b269.zip |
ARM: OMAP3+: SmartReflex: micro-optimization for sanity check
val && (val != 1) == val > 1
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/smartreflex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index f1db4c67c48a..daf8053741f7 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -886,7 +886,7 @@ static int omap_sr_autocomp_store(void *data, u64 val) } /* Sanity check */ - if (val && (val != 1)) { + if (val > 1) { pr_warning("%s: Invalid argument %lld\n", __func__, val); return -EINVAL; } |