From: Eduardo Valentin Date: Wed, 17 Apr 2013 17:12:06 +0000 (+0000) Subject: thermal: cpu_cooling: remove checkpatch.pl warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef5e2124ec3d54182bd826411d864e0e28fc00d4;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git thermal: cpu_cooling: remove checkpatch.pl warning Simple code style fix. Signed-off-by: Eduardo Valentin Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c index be04bb419fd..04a952079ec 100644 --- a/drivers/thermal/cpu_cooling.c +++ b/drivers/thermal/cpu_cooling.c @@ -181,7 +181,7 @@ static int get_property(unsigned int cpu, unsigned long input, } if (property == GET_FREQ) - level = descend ? input : (max_level - input -1); + level = descend ? input : (max_level - input - 1); for (i = 0, j = 0; table[i].frequency != CPUFREQ_TABLE_END; i++) { /* ignore invalid entry */