Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lan Tianyu and committed by
Greg Kroah-Hartman
7fc2cc32 05f2b391

+3 -3
+3 -3
drivers/usb/core/sysfs.c
··· 204 204 const char *buf, size_t count) 205 205 { 206 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 210 return -EINVAL; 211 211 usb_lock_device(udev); 212 - if (config) 212 + if (val) 213 213 udev->quirks |= USB_QUIRK_RESET_MORPHS; 214 214 else 215 215 udev->quirks &= ~USB_QUIRK_RESET_MORPHS;