lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 11 Apr 2015 03:41:10 -0700 From: Chase Metzger <chasemetzger15@...il.com> To: gregkh@...uxfoundation.org Cc: stern@...land.harvard.edu, balbi@...com, dan.j.williams@...el.com, antoine.tenart@...e-electrons.com, pmladek@...e.cz, sergei.shtylyov@...entembedded.com, rafael.j.wysocki@...el.com, linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org, Chase Metzger <chasemetzger15@...il.com> Subject: [PATCH] drivers/usb/core: hcd.c: Added parenthesis' to sizeof Removed all warnings generated by checkpatch.pl about sizeof not having parenthesis'. Signed-off-by: Chase Metzger <chasemetzger15@...il.com> --- drivers/usb/core/hcd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 557f2b8..601476c7 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -447,7 +447,7 @@ rh_string(int id, struct usb_hcd const *hcd, u8 *data, unsigned len) break; case 3: /* Manufacturer */ - snprintf(buf, sizeof buf, "%s %s %s", init_utsname()->sysname, + snprintf(buf, sizeof(buf), "%s %s %s", init_utsname()->sysname, init_utsname()->release, hcd->driver->description); s = buf; break; @@ -578,16 +578,16 @@ static int rh_call_control(struct usb_hcd *hcd, struct urb *urb) switch (hcd->speed) { case HCD_USB3: bufp = ss_rh_config_descriptor; - len = sizeof ss_rh_config_descriptor; + len = sizeof(ss_rh_config_descriptor); break; case HCD_USB25: case HCD_USB2: bufp = hs_rh_config_descriptor; - len = sizeof hs_rh_config_descriptor; + len = sizeof(hs_rh_config_descriptor); break; case HCD_USB11: bufp = fs_rh_config_descriptor; - len = sizeof fs_rh_config_descriptor; + len = sizeof(fs_rh_config_descriptor); break; default: goto error; @@ -1008,7 +1008,7 @@ static int register_root_hub(struct usb_hcd *hcd) usb_dev->devnum = devnum; usb_dev->bus->devnum_next = devnum + 1; memset(&usb_dev->bus->devmap.devicemap, 0, - sizeof usb_dev->bus->devmap.devicemap); + sizeof(usb_dev->bus->devmap.devicemap)); set_bit(devnum, usb_dev->bus->devmap.devicemap); usb_set_device_state(usb_dev, USB_STATE_ADDRESS); @@ -1016,7 +1016,7 @@ static int register_root_hub(struct usb_hcd *hcd) usb_dev->ep0.desc.wMaxPacketSize = cpu_to_le16(64); retval = usb_get_device_descriptor(usb_dev, USB_DT_DEVICE_SIZE); - if (retval != sizeof usb_dev->descriptor) { + if (retval != sizeof(usb_dev->descriptor)) { mutex_unlock(&usb_bus_list_lock); dev_dbg(parent_dev, "can't read %s device descriptor %d\n", dev_name(&usb_dev->dev), retval); -- 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