mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: rtl8188eu: os_dep: remove unnecessary alloc fail message
Remove redundant alloc fail message This patch fixes the warning found by checkpatch Signed-off-by: Pierre-Yves Kerbrat <pkerbrat@free.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1050394cd7
commit
fb26718744
@ -43,14 +43,12 @@ void *rtw_malloc2d(int h, int w, int size)
|
|||||||
int j;
|
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) {
|
if (!a)
|
||||||
pr_info("%s: alloc memory fail!\n", __func__);
|
goto out;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (j = 0; j < h; j++)
|
for (j = 0; j < h; j++)
|
||||||
a[j] = ((char *)(a + h)) + j * w * size;
|
a[j] = ((char *)(a + h)) + j * w * size;
|
||||||
|
out:
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user