Removed a warnings(from checkpatch.pl) about sizeof not having parenthesis'. 
added parenthesis'
around the strings being used.

Signed-off-by: Chase Metzger <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to