Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133565
b: refs/heads/master
c: b7af0bb
h: refs/heads/master
i:
  133563: 4e9501e
v: v3
  • Loading branch information
Daniel Mack authored and Greg Kroah-Hartman committed Mar 24, 2009
1 parent ecaf0bc commit 0b5c2aa
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: 4c24b6d045a9d355c95ca4e6beb10ce2fd263390
refs/heads/master: b7af0bb26899bb47ae16fb41d2296111b0784a56
6 changes: 2 additions & 4 deletions trunk/drivers/usb/core/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,18 +804,16 @@ int usb_string(struct usb_device *dev, int index, char *buf, size_t size)
dev_err(&dev->dev,
"string descriptor 0 read error: %d\n",
err);
goto errout;
} else if (err < 4) {
dev_err(&dev->dev, "string descriptor 0 too short\n");
err = -EINVAL;
goto errout;
} else {
dev->have_langid = 1;
dev->string_langid = tbuf[2] | (tbuf[3] << 8);
/* always use the first langid listed */
dev_dbg(&dev->dev, "default language 0x%04x\n",
dev->string_langid);
}

dev->have_langid = 1;
}

err = usb_string_sub(dev, dev->string_langid, index, tbuf);
Expand Down

0 comments on commit 0b5c2aa

Please sign in to comment.