mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
staging: wlan-ng: Replace data type declaration with variable of same type in hfa384x_usb.c
sizeof(var) instead of sizeof(struct XXX) is preferred. Fix it in hfa384x_usb.c file. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
89e13b4590
commit
a567d0d47f
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ static void hfa384x_usb_defer(struct work_struct *data)
|
||||||
*/
|
*/
|
||||||
void hfa384x_create(struct hfa384x *hw, struct usb_device *usb)
|
void hfa384x_create(struct hfa384x *hw, struct usb_device *usb)
|
||||||
{
|
{
|
||||||
memset(hw, 0, sizeof(struct hfa384x));
|
memset(hw, 0, sizeof(*hw));
|
||||||
hw->usb = usb;
|
hw->usb = usb;
|
||||||
|
|
||||||
/* set up the endpoints */
|
/* set up the endpoints */
|
||||||
|
|
Loading…
Reference in a new issue