staging: rtl8188eu: os_dep: fix missing spaces around operators
authorPierre-Yves Kerbrat <pkerbrat@free.fr>
Wed, 19 Oct 2016 18:49:51 +0000 (20:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 08:57:12 +0000 (10:57 +0200)
Fix missing space around operators in rtw_alloc2d function in
osdep_service.c

Signed-off-by: Pierre-Yves Kerbrat <pkerbrat@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index 534e58ecc510c0f2a797024e3cbf633fce8683e2..df5f44000cf02eeecd561be5d3008384986143be 100644 (file)
@@ -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;
 }