* [PATCH] drivers/usb/core: sysfs.c: Removed a couple warnings
@ 2015-04-11 8:52 Chase Metzger
0 siblings, 0 replies; only message in thread
From: Chase Metzger @ 2015-04-11 8:52 UTC (permalink / raw)
To: gregkh; +Cc: rafael.j.wysocki, stern, linux-usb, linux-kernel, Chase Metzger
Removed a warnings(from checkpatch.pl) about sizeof not having parenthesis'. added parenthesis'
around the strings being used.
Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
---
drivers/usb/core/sysfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
index d269738..bb8aff1 100644
--- a/drivers/usb/core/sysfs.c
+++ b/drivers/usb/core/sysfs.c
@@ -428,11 +428,11 @@ static ssize_t level_store(struct device *dev, struct device_attribute *attr,
usb_lock_device(udev);
- if (len == sizeof on_string - 1 &&
+ if (len == sizeof(on_string) - 1 &&
strncmp(buf, on_string, len) == 0)
usb_disable_autosuspend(udev);
- else if (len == sizeof auto_string - 1 &&
+ else if (len == sizeof(auto_string) - 1 &&
strncmp(buf, auto_string, len) == 0)
usb_enable_autosuspend(udev);
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-11 8:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-11 8:52 [PATCH] drivers/usb/core: sysfs.c: Removed a couple warnings Chase Metzger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®