[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1428742346-6793-1-git-send-email-chasemetzger15@gmail.com>
Date: Sat, 11 Apr 2015 01:52:26 -0700
From: Chase Metzger <chasemetzger15@...il.com>
To: gregkh@...uxfoundation.org
Cc: rafael.j.wysocki@...el.com, stern@...land.harvard.edu,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
Chase Metzger <chasemetzger15@...il.com>
Subject: [PATCH] drivers/usb/core: sysfs.c: Removed a couple warnings
Removed a warnings(from checkpatch.pl) about sizeof not having parenthesis'. added parenthesis'
around the strings being used.
Signed-off-by: Chase Metzger <chasemetzger15@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists