On Thu, 24 Jan 2008 15:33:45 +0100 Haavard Skinnemoen <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to