staging: wlan-ng: Replace data type declaration with variable of same type in hfa384x...
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 10 Oct 2016 14:02:19 +0000 (16:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:26:21 +0000 (10:26 +0200)
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>
drivers/staging/wlan-ng/hfa384x_usb.c

index fbd9dc6b81ee2336670bfcc145625c8701f53769..a83026e74c63fbb4b739f24feb62729372473dd4 100644 (file)
@@ -531,7 +531,7 @@ static void hfa384x_usb_defer(struct work_struct *data)
  */
 void hfa384x_create(struct hfa384x *hw, struct usb_device *usb)
 {
-       memset(hw, 0, sizeof(struct hfa384x));
+       memset(hw, 0, sizeof(*hw));
        hw->usb = usb;
 
        /* set up the endpoints */