From: Tuukka Tikkanen Date: Wed, 14 Aug 2013 16:02:37 +0000 (+0300) Subject: cpuidle: CodingStyle: Break up multiple assignments on single line X-Git-Tag: MMI-PSA29.97-13-9~13630^2~3^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4cd46bca8ca8ad20cadf74fd9b76364c46ed0f31;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cpuidle: CodingStyle: Break up multiple assignments on single line The function get_typical_interval() initializes a number of variables that are immediately after declarations assigned constant values. In addition, there are multiple assignments on a single line, which is explicitly forbidden by Documentation/CodingStyle. This patch removes redundant initial values for the variables and breaks up the multiple assignment line. Signed-off-by: Tuukka Tikkanen Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpuidle/governors/menu.c b/drivers/cpuidle/governors/menu.c index af7b3f6b260d..94a303739ba8 100644 --- a/drivers/cpuidle/governors/menu.c +++ b/drivers/cpuidle/governors/menu.c @@ -199,14 +199,17 @@ static u64 div_round64(u64 dividend, u32 divisor) */ static void get_typical_interval(struct menu_device *data) { - int i = 0, divisor = 0; - uint64_t max = 0, avg = 0, stddev = 0; + int i, divisor; + uint64_t max, avg, stddev; int64_t thresh = LLONG_MAX; /* Discard outliers above this value. */ again: /* first calculate average and standard deviation of the past */ - max = avg = divisor = stddev = 0; + max = 0; + avg = 0; + divisor = 0; + stddev = 0; for (i = 0; i < INTERVALS; i++) { int64_t value = data->intervals[i]; if (value <= thresh) {