Commit 3ddaf648 authored by Pierre-Yves Kerbrat's avatar Pierre-Yves Kerbrat Committed by Greg Kroah-Hartman

staging: rtl8188eu: os_dep: fix missing spaces around operators

Fix missing space around operators in rtw_alloc2d function in
osdep_service.c
Signed-off-by: default avatarPierre-Yves Kerbrat <pkerbrat@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ec0f85f8
......@@ -42,14 +42,14 @@ void *rtw_malloc2d(int h, int w, int size)
{
int j;
void **a = kzalloc(h*sizeof(void *) + h*w*size, GFP_KERNEL);
void **a = kzalloc(h * sizeof(void *) + h * w * size, GFP_KERNEL);
if (!a) {
pr_info("%s: alloc memory fail!\n", __func__);
return NULL;
}
for (j = 0; j < h; j++)
a[j] = ((char *)(a+h)) + j*w*size;
a[j] = ((char *)(a + h)) + j * w * size;
return a;
}
......
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