diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-09-19 23:45:46 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 16:53:39 -0700 |
commit | 0a69bb4691662054596f48b9a1cab8f9323442c8 (patch) | |
tree | 0e82ace87f3366f8b84e6bf36d69b2ff2765ae04 /drivers/staging/octeon-usb | |
parent | f6853448667b3b3234331b22d34d7158b12237fd (diff) | |
download | linux-0a69bb4691662054596f48b9a1cab8f9323442c8.tar.bz2 |
staging: octeon-usb: Cocci spatch "noderef"
sizeof when applied to a pointer typed expression gives the size of the
pointer.
Found by coccinelle spatch "misc/noderef.cocci"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon-usb')
-rw-r--r-- | drivers/staging/octeon-usb/cvmx-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon-usb/cvmx-usb.c b/drivers/staging/octeon-usb/cvmx-usb.c index d7b3c82b5ead..45dfe94199ae 100644 --- a/drivers/staging/octeon-usb/cvmx-usb.c +++ b/drivers/staging/octeon-usb/cvmx-usb.c @@ -604,7 +604,7 @@ int cvmx_usb_initialize(struct cvmx_usb_state *state, int usb_port_number, } } - memset(usb, 0, sizeof(usb)); + memset(usb, 0, sizeof(*usb)); usb->init_flags = flags; /* Initialize the USB state structure */ |