Subject: [PATCH net-next 07/16] xsk: Remove unused xsk_buff_discard

From: Saeed Mahameed <[email-masked]>
Date: Thu, 29 Sep 2022 00:21:47 -0700

From: Maxim Mikityanskiy <[email-masked]>

The previous commit removed the last usage of xsk_buff_discard in mlx5e,
so the function that is no longer used can be removed.

Signed-off-by: Maxim Mikityanskiy <[email-masked]>
Reviewed-by: Tariq Toukan <[email-masked]>
CC: "Björn Töpel" <[email-masked]>
CC: Magnus Karlsson <[email-masked]>
CC: Maciej Fijalkowski <[email-masked]>
Signed-off-by: Saeed Mahameed <[email-masked]>
---
 include/net/xdp_sock_drv.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/include/net/xdp_sock_drv.h b/include/net/xdp_sock_drv.h
index 6406faa3d57d..9c0d860609ba 100644
--- a/include/net/xdp_sock_drv.h
+++ b/include/net/xdp_sock_drv.h
@@ -107,13 +107,6 @@ static inline void xsk_buff_free(struct xdp_buff *xdp)
 	xp_free(xskb);
 }
 
-static inline void xsk_buff_discard(struct xdp_buff *xdp)
-{
-	struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
-
-	xp_release(xskb);
-}
-
 static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
 {
 	xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM;
-- 
2.37.3