Skip to content

Commit

Permalink
leds: fix unsigned value overflow in atmel pwm driver
Browse files Browse the repository at this point in the history
Fix an unsigned value overflow in the error handling code in the
Atmel PWM driver.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
  • Loading branch information
Li Zefan authored and Richard Purdie committed Jul 23, 2008
1 parent 30be048 commit e49575f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/leds/leds-atmel-pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static int __init pwmled_probe(struct platform_device *pdev)
{
const struct gpio_led_platform_data *pdata;
struct pwmled *leds;
unsigned i;
int i;
int status;

pdata = pdev->dev.platform_data;
Expand Down

0 comments on commit e49575f

Please sign in to comment.