summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-09-19 23:45:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-25 16:53:39 -0700
commit0a69bb4691662054596f48b9a1cab8f9323442c8 (patch)
tree0e82ace87f3366f8b84e6bf36d69b2ff2765ae04
parentf6853448667b3b3234331b22d34d7158b12237fd (diff)
downloadop-kernel-dev-0a69bb4691662054596f48b9a1cab8f9323442c8.zip
op-kernel-dev-0a69bb4691662054596f48b9a1cab8f9323442c8.tar.gz
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.c2
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 */
OpenPOWER on IntegriCloud