Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130581
b: refs/heads/master
c: 8dd2c9e
h: refs/heads/master
i:
  130579: aca6d78
v: v3
  • Loading branch information
Roel Kluin authored and Liam Girdwood committed Jan 30, 2009
1 parent 8c565be commit 5f33d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 9bf503e6bec3f2d28298808454eebde031ab5b5b
refs/heads/master: 8dd2c9e3128a5784a01084b52d5bb7efd4371ac6
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/wm8350-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1435,7 +1435,7 @@ int wm8350_register_led(struct wm8350 *wm8350, int lednum, int dcdc, int isink,
struct platform_device *pdev;
int ret;

if (lednum > ARRAY_SIZE(wm8350->pmic.led) || lednum < 0) {
if (lednum >= ARRAY_SIZE(wm8350->pmic.led) || lednum < 0) {
dev_err(wm8350->dev, "Invalid LED index %d\n", lednum);
return -ENODEV;
}
Expand Down

0 comments on commit 5f33d0a

Please sign in to comment.