]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
usb: Rename temp variable "config" to "val" in the set_avoid_reset_quirk()
authorLan Tianyu <tianyu.lan@intel.com>
Fri, 3 Aug 2012 08:30:35 +0000 (16:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Aug 2012 19:06:39 +0000 (12:06 -0700)
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>
drivers/usb/core/sysfs.c

index 682e8256b95da719d3e5d2aeea019cc59c25520f..d6c49d9ed4e03864fe500915f589149105c8cc10 100644 (file)
@@ -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;