Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358578
b: refs/heads/master
c: 8a66a57
h: refs/heads/master
v: v3
  • Loading branch information
Peter Ujfalusi authored and Bryan Wu committed Feb 2, 2013
1 parent 1d7f670 commit 4c0b08f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 261a5edd3ac77ecb4b33310a1dd1ed8d656f0569
refs/heads/master: 8a66a579083a20172a46e74d175a57621dccae0a
6 changes: 2 additions & 4 deletions trunk/drivers/leds/leds-pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ static int led_pwm_probe(struct platform_device *pdev)
return 0;

err:
if (i > 0) {
for (i = i - 1; i >= 0; i--)
led_classdev_unregister(&priv->leds[i].cdev);
}
while (i--)
led_classdev_unregister(&priv->leds[i].cdev);

return ret;
}
Expand Down

0 comments on commit 4c0b08f

Please sign in to comment.