mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
9cb2dbf316
commit
99aded71b5
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user