diff options
author | Jacky Boen <aqiank@gmail.com> | 2016-05-01 18:50:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-02 00:34:53 +0300 |
commit | 99aded71b52cfdfa22721c42e42efdd13a02f0a6 (patch) | |
tree | 9c91707c057c5d01603a1f71592096d90392cfb7 | |
parent | 9cb2dbf316d9a020fa4a042958930b85f24f2a6f (diff) | |
download | linux-99aded71b52cfdfa22721c42e42efdd13a02f0a6.tar.xz |
Staging: drivers: rtl8188eu: use sizeof(*ptr) instead of sizeof(struct)
Fix coding style issue
Signed-off-by: Jacky Boen <aqiank@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8188eu/hal/usb_halinit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/hal/usb_halinit.c b/drivers/staging/rtl8188eu/hal/usb_halinit.c index 363f3a34ddce..87ea3b844951 100644 --- a/drivers/staging/rtl8188eu/hal/usb_halinit.c +++ b/drivers/staging/rtl8188eu/hal/usb_halinit.c @@ -2072,8 +2072,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt) { struct hal_ops *halfunc = &adapt->HalFunc; - - adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL); + adapt->HalData = kzalloc(sizeof(*adapt->HalData), GFP_KERNEL); if (!adapt->HalData) DBG_88E("cant not alloc memory for HAL DATA\n"); |