Browse Source

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>
Pierre-Yves Kerbrat 8 years ago
parent
commit
fb26718744
1 changed files with 3 additions and 5 deletions
  1. 3 5
      drivers/staging/rtl8188eu/os_dep/osdep_service.c

+ 3 - 5
drivers/staging/rtl8188eu/os_dep/osdep_service.c

@@ -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;
 }