Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325823
b: refs/heads/master
c: 7fc2cc3
h: refs/heads/master
i:
  325821: 5b1eb02
  325819: a6f4bdb
  325815: 7ef2879
  325807: fab473a
  325791: 3270a82
  325759: 8d713cd
v: v3
  • Loading branch information
Lan Tianyu authored and Greg Kroah-Hartman committed Aug 10, 2012
1 parent 6a2b777 commit 03fb2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 05f2b3912323b4130dbf6d5091601d9ca3aaf119
refs/heads/master: 7fc2cc320cd3e53954187d9cff8145f38ae4a015
6 changes: 3 additions & 3 deletions trunk/drivers/usb/core/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ set_avoid_reset_quirk(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{
struct usb_device *udev = to_usb_device(dev);
int config;
int val;

if (sscanf(buf, "%d", &config) != 1 || config < 0 || config > 1)
if (sscanf(buf, "%d", &val) != 1 || val < 0 || val > 1)
return -EINVAL;
usb_lock_device(udev);
if (config)
if (val)
udev->quirks |= USB_QUIRK_RESET_MORPHS;
else
udev->quirks &= ~USB_QUIRK_RESET_MORPHS;
Expand Down

0 comments on commit 03fb2b4

Please sign in to comment.