[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080127213232.ade044d5.akpm@linux-foundation.org>
Date: Sun, 27 Jan 2008 21:32:32 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Haavard Skinnemoen <hskinnemoen@...el.com>
Cc: David Brownell <david-b@...bell.net>,
Andrew Victor <linux@...im.org.za>,
Nicolas Ferre <nicolas.ferre@...el.com>,
Patrice Vilchez <patrice.vilchez@....atmel.com>,
Richard Purdie <rpurdie@...ys.net>,
linux-kernel@...r.kernel.org, kernel@...32linux.org,
David Brownell <dbrownell@...rs.sourceforge.net>
Subject: Re: [PATCH -mm 2/2] PWM LED driver
On Thu, 24 Jan 2008 15:33:45 +0100 Haavard Skinnemoen <hskinnemoen@...el.com> wrote:
> + if (i > 0) {
> + for (i = i - 1; i >= 0; i--) {
> + led_classdev_unregister(&leds[i].cdev);
> + pwm_channel_free(&leds[i].pwmc);
> + }
> + }
Could be:
while (--i > 0) {
led_classdev_unregister(&leds[i].cdev);
pwm_channel_free(&leds[i].pwmc);
}
or thereabouts.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists