[PATCH 4/4] net/skbuff: kmalloc_reserve(): remove unused argument

From: Andrey Ryabinin
Date: Thu Apr 18 2019 - 14:05:11 EST


Argument 'ip' always has been unused. Remove it.

Signed-off-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx>
---
net/core/skbuff.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 97557554e90e..5cd067b44371 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -126,11 +126,8 @@ static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr)
* may be used. Otherwise, the packet data may be discarded until enough
* memory is free
*/
-#define kmalloc_reserve(size, gfp, node, pfmemalloc) \
- __kmalloc_reserve(size, gfp, node, _RET_IP_, pfmemalloc)
-
-static void *__kmalloc_reserve(size_t size, gfp_t flags, int node,
- unsigned long ip, bool *pfmemalloc)
+static void *kmalloc_reserve(size_t size, gfp_t flags, int node,
+ bool *pfmemalloc)
{
void *obj;
gfp_t gfp_mask = flags;
--
2.21.0