From 4d7983324507ff23ddf0b6e513864d4eca7a62f1 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 10 Jan 2013 20:03:38 -0800 Subject: [PATCH] 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-format-patch failed