projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f685344
)
staging: octeon-usb: Cocci spatch "noderef"
author
Thomas Meyer
<thomas@m3y3r.de>
Thu, 19 Sep 2013 21:45:46 +0000
(23:45 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:53:39 +0000
(16:53 -0700)
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>
drivers/staging/octeon-usb/cvmx-usb.c
patch
|
blob
|
history
diff --git
a/drivers/staging/octeon-usb/cvmx-usb.c
b/drivers/staging/octeon-usb/cvmx-usb.c
index d7b3c82b5ead023bcc4ba85acdd0e307b0eecdc9..45dfe94199ae4ecd951a8142fb6f9140d226942c 100644
(file)
--- 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 */