From: Axel Lin Date: Fri, 11 Jan 2013 04:03:38 +0000 (-0800) Subject: leds: renesas-tpu: Improve the readability to pick the lowest acceptable rate X-Git-Tag: v3.9-rc1~79^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d7983324507ff23ddf0b6e513864d4eca7a62f1;p=pandora-kernel.git leds: renesas-tpu: Improve the readability to pick the lowest acceptable rate I spent a few minutes to understand why the code catching the mismatch case by checking if k is 0 or not. And the code using "k - 1" as array index is unusual. This patch checks acceptable rate from the lowest rate, and then we don't need to subtract k by 1. This change improves the readability. Signed-off-by: Axel Lin Signed-off-by: Bryan Wu --- Reading git-diff-tree failed