summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_actmon.c
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@nvidia.com>2012-01-18 15:12:48 -0800
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-31 04:28:29 -0800
commit8d6397a76ea0e483206f9de2928a6784d2f45136 (patch)
tree362085e91d19ce3bde472640642c777388a2ca11 /arch/arm/mach-tegra/tegra3_actmon.c
parented3149c88bc2a6e5761e284d5453895572f5ab29 (diff)
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 <cmccabe@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78015 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_actmon.c')
-rw-r--r--arch/arm/mach-tegra/tegra3_actmon.c3
1 files changed, 0 insertions, 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)