Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361635
b: refs/heads/master
c: 3416905
h: refs/heads/master
i:
  361633: ef0315e
  361631: 30f0d2b
v: v3
  • Loading branch information
Andrzej Pietrasiewicz authored and Felipe Balbi committed Mar 20, 2013
1 parent e60fe4b commit e31491b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 8119b55aed818e590c26cb97706c914e3d660fd8
refs/heads/master: 3416905ba058e43112ad7b1b4859797f027f5a07
4 changes: 2 additions & 2 deletions trunk/drivers/usb/gadget/g_ffs.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static int gfs_bind(struct usb_composite_dev *cdev)
goto error;
gfs_dev_desc.iProduct = gfs_strings[USB_GADGET_PRODUCT_IDX].id;

for (i = func_num; --i; ) {
for (i = func_num; i--; ) {
ret = functionfs_bind(ffs_tab[i].ffs_data, cdev);
if (unlikely(ret < 0)) {
while (++i < func_num)
Expand Down Expand Up @@ -413,7 +413,7 @@ static int gfs_unbind(struct usb_composite_dev *cdev)
gether_cleanup();
gfs_ether_setup = false;

for (i = func_num; --i; )
for (i = func_num; i--; )
if (ffs_tab[i].ffs_data)
functionfs_unbind(ffs_tab[i].ffs_data);

Expand Down

0 comments on commit e31491b

Please sign in to comment.