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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f685344866
commit
0a69bb4691
@@ -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;
|
usb->init_flags = flags;
|
||||||
|
|
||||||
/* Initialize the USB state structure */
|
/* Initialize the USB state structure */
|
||||||
|
Reference in New Issue
Block a user