OSDN Git Service

leds: leds-pwm: Simplify cleanup code
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 21 Dec 2012 09:44:00 +0000 (01:44 -0800)
committerBryan Wu <cooloney@gmail.com>
Sat, 2 Feb 2013 01:47:05 +0000 (17:47 -0800)
commit8a66a579083a20172a46e74d175a57621dccae0a
treee86f30b35852a0237ad64b7eed227f5edada1aa8
parent261a5edd3ac77ecb4b33310a1dd1ed8d656f0569
leds: leds-pwm: Simplify cleanup code

The code looks more nicer if we use:

while (i--)

instead:
if (i > 0)
for (i = i - 1; i >= 0; i--)

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-pwm.c