aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2012-08-03 04:30:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-10 15:06:39 -0400
commit7fc2cc320cd3e53954187d9cff8145f38ae4a015 (patch)
tree315164a1051ce66f0cf0804d96bbddeac841e3b7
parent05f2b3912323b4130dbf6d5091601d9ca3aaf119 (diff)
usb: Rename temp variable "config" to "val" in the set_avoid_reset_quirk()
In USB, the word "config" already has aseparate meaning. So it will cause confusion if use "config" as variable's name for other purposes. This patch is to convert the "config" to "val" Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/core/sysfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
index 682e8256b95d..d6c49d9ed4e0 100644
--- a/drivers/usb/core/sysfs.c
+++ b/drivers/usb/core/sysfs.c
@@ -204,12 +204,12 @@ set_avoid_reset_quirk(struct device *dev, struct device_attribute *attr,
204 const char *buf, size_t count) 204 const char *buf, size_t count)
205{ 205{
206 struct usb_device *udev = to_usb_device(dev); 206 struct usb_device *udev = to_usb_device(dev);
207 int config; 207 int val;
208 208
209 if (sscanf(buf, "%d", &config) != 1 || config < 0 || config > 1) 209 if (sscanf(buf, "%d", &val) != 1 || val < 0 || val > 1)
210 return -EINVAL; 210 return -EINVAL;
211 usb_lock_device(udev); 211 usb_lock_device(udev);
212 if (config) 212 if (val)
213 udev->quirks |= USB_QUIRK_RESET_MORPHS; 213 udev->quirks |= USB_QUIRK_RESET_MORPHS;
214 else 214 else
215 udev->quirks &= ~USB_QUIRK_RESET_MORPHS; 215 udev->quirks &= ~USB_QUIRK_RESET_MORPHS;