From 8d6397a76ea0e483206f9de2928a6784d2f45136 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Wed, 18 Jan 2012 15:12:48 -0800 Subject: mach-tegra: tegra3_actmon: skip useless check Don't check if an unsigned variable < 0. Reviewed-on: http://git-master/r/77466 Change-Id: Ia61781a8f5b8ebcdc39501486ed3f893a91d3430 Signed-off-by: Colin Patrick McCabe Signed-off-by: Varun Wadekar Reviewed-on: http://git-master/r/78015 Reviewed-by: Automatic_Commit_Validation_User --- arch/arm/mach-tegra/tegra3_actmon.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-tegra/tegra3_actmon.c b/arch/arm/mach-tegra/tegra3_actmon.c index 05cdc1f86465..c7aeb9acdd12 100644 --- a/arch/arm/mach-tegra/tegra3_actmon.c +++ b/arch/arm/mach-tegra/tegra3_actmon.c @@ -666,9 +666,6 @@ static int down_threshold_set(void *data, u64 val) struct actmon_dev *dev = data; unsigned int down_threshold = (unsigned int)val; - if (down_threshold < 0) - down_threshold = 0; - spin_lock_irqsave(&dev->lock, flags); if (down_threshold >= dev->boost_up_threshold) -- cgit v1.2.3