diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-09-19 21:45:46 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 23:53:39 (GMT) |
commit | 0a69bb4691662054596f48b9a1cab8f9323442c8 (patch) | |
tree | 0e82ace87f3366f8b84e6bf36d69b2ff2765ae04 | |
parent | f6853448667b3b3234331b22d34d7158b12237fd (diff) | |
download | linux-fsl-qoriq-0a69bb4691662054596f48b9a1cab8f9323442c8.tar.xz |
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>
-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 d7b3c82..45dfe94 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 */ |