[PATCH] usb: core: sysfs: kill compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kill the following compile warning introduced by
commit d33d8a4c8877ab1d7e7e522aabbd9ea49ba1b9e0:

drivers/usb/core/sysfs.c: In function 'set_reset_quirk':
drivers/usb/core/sysfs.c:201: warning: unused variable 'value'

Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>
---

This patch is also available at:

http://gitorious.org/usb/usb/commit/a36a39c07c584c76d37b406cac358ee418fbc639

 drivers/usb/core/sysfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
index 3604d61..6187b41 100644
--- a/drivers/usb/core/sysfs.c
+++ b/drivers/usb/core/sysfs.c
@@ -198,7 +198,7 @@ set_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, value;
+	int			config;
 
 	if (sscanf(buf, "%d", &config) != 1 || config < 0 || config > 1)
 		return -EINVAL;
-- 
1.6.6.35.g1d85d

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux