diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2016-10-10 16:02:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-16 10:26:21 +0200 |
commit | a567d0d47ffb31d1f8d8c206db998043911fa256 (patch) | |
tree | 47cb48cf85282cd108924906861e25136f259922 /drivers/staging/wlan-ng/hfa384x_usb.c | |
parent | staging: wlan-ng: Replace data type declaration with variable of same type in cfg80211.c (diff) | |
download | linux-dev-a567d0d47ffb31d1f8d8c206db998043911fa256.tar.xz linux-dev-a567d0d47ffb31d1f8d8c206db998043911fa256.zip |
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>
Diffstat (limited to 'drivers/staging/wlan-ng/hfa384x_usb.c')
-rw-r--r-- | drivers/staging/wlan-ng/hfa384x_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index fbd9dc6b81ee..a83026e74c63 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -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 */ |