Commit 99aded71 authored by Jacky Boen's avatar Jacky Boen Committed by Greg Kroah-Hartman

Staging: drivers: rtl8188eu: use sizeof(*ptr) instead of sizeof(struct)

Fix coding style issue
Signed-off-by: default avatarJacky Boen <aqiank@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9cb2dbf3
...@@ -2072,8 +2072,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt) ...@@ -2072,8 +2072,7 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
{ {
struct hal_ops *halfunc = &adapt->HalFunc; struct hal_ops *halfunc = &adapt->HalFunc;
adapt->HalData = kzalloc(sizeof(*adapt->HalData), GFP_KERNEL);
adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL);
if (!adapt->HalData) if (!adapt->HalData)
DBG_88E("cant not alloc memory for HAL DATA\n"); DBG_88E("cant not alloc memory for HAL DATA\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment