summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8188eu/os_dep
diff options
context:
space:
mode:
authorBhaskar Singh <bhaskar.kernel@gmail.com>2018-08-21 06:32:22 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-27 19:29:39 +0200
commit22d8eeb32abcf4323757e6044497a2fdd560c0af (patch)
tree7651dd8c96f00f9d57e8bed4a56e4e685eb4b498 /drivers/staging/rtl8188eu/os_dep
parent6c352cfd12f40e95635e8f6b6be53f1f958e7f86 (diff)
staging: rtl8188eu: Removed a function and coded inline
This patch removed function named rtw_malloc2d. I removed this function because this function is used exactly once and function call have some overhead also. Maybe this will improve code runtime slightly. Signed-off-by: Bhaskar Singh <bhaskar.kernel@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/osdep_service.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/osdep_service.c b/drivers/staging/rtl8188eu/os_dep/osdep_service.c
index 78daef6704ac..105f3f21bdea 100644
--- a/drivers/staging/rtl8188eu/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8188eu/os_dep/osdep_service.c
@@ -18,20 +18,6 @@ u8 *_rtw_malloc(u32 sz)
return kmalloc(sz, in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
}
-void *rtw_malloc2d(int h, int w, int size)
-{
- int j;
- void **a = kzalloc(h * sizeof(void *) + h * w * size, GFP_KERNEL);
-
- if (!a)
- goto out;
-
- for (j = 0; j < h; j++)
- a[j] = ((char *)(a + h)) + j * w * size;
-out:
- return a;
-}
-
void _rtw_init_queue(struct __queue *pqueue)
{
INIT_LIST_HEAD(&pqueue->queue);