Skip to content

Commit 7fc2cc3

Browse files
Lan Tianyugregkh
authored andcommitted
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>
1 parent 05f2b39 commit 7fc2cc3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/usb/core/sysfs.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ set_avoid_reset_quirk(struct device *dev, struct device_attribute *attr,
204204
const char *buf, size_t count)
205205
{
206206
struct usb_device *udev = to_usb_device(dev);
207-
int config;
207+
int val;
208208

209-
if (sscanf(buf, "%d", &config) != 1 || config < 0 || config > 1)
209+
if (sscanf(buf, "%d", &val) != 1 || val < 0 || val > 1)
210210
return -EINVAL;
211211
usb_lock_device(udev);
212-
if (config)
212+
if (val)
213213
udev->quirks |= USB_QUIRK_RESET_MORPHS;
214214
else
215215
udev->quirks &= ~USB_QUIRK_RESET_MORPHS;

0 commit comments

Comments
 (0)