From: Lan Tianyu Date: Fri, 3 Aug 2012 08:30:35 +0000 (+0800) Subject: usb: Rename temp variable "config" to "val" in the set_avoid_reset_quirk() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7fc2cc320cd3e53954187d9cff8145f38ae4a015;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Lan Tianyu Signed-off-by: Greg Kroah-Hartman --- 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, 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;