leds: ns2: remove unneeded variable
authorMarek Behún <marek.behun@nic.cz>
Thu, 17 Sep 2020 22:33:34 +0000 (00:33 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 26 Sep 2020 19:56:42 +0000 (21:56 +0200)
commit48b77cdca50a180fd1f22f4ae3b3d1e4ec7d2e5c
tree75df45753a6b0ce289d68613a637010ebd8d5506
parenta4a469b4314e95818521daef82aa7f9071123245
leds: ns2: remove unneeded variable

No need to use variable found, we can determine whether the mode was
found by comparing iterator variable to its limit.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Cc: Simon Guinot <simon.guinot@sequanux.org>
Cc: Simon Guinot <sguinot@lacie.com>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-ns2.c