Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb267187 authored by Pierre-Yves Kerbrat's avatar Pierre-Yves Kerbrat Committed by Greg Kroah-Hartman
Browse files

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: default avatarPierre-Yves Kerbrat <pkerbrat@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1050394c
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -43,14 +43,12 @@ void *rtw_malloc2d(int h, int w, int size)
	int j;

	void **a = kzalloc(h * sizeof(void *) + h * w * size, GFP_KERNEL);
	if (!a) {
		pr_info("%s: alloc memory fail!\n", __func__);
		return NULL;
	}
	if (!a)
		goto out;

	for (j = 0; j < h; j++)
		a[j] = ((char *)(a + h)) + j * w * size;

out:
	return a;
}