aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Luczaj <mhal@rbox.co>2025-07-02 15:38:12 +0200
committerJakub Kicinski <kuba@kernel.org>2025-07-08 08:37:22 -0700
commitab34e14258cd3b6d93ce2d6539a83f740dea8219 (patch)
tree50828b64c9a2d928dee5775307287d0a58a4c421
parentnet: skbuff: Drop unused @skb (diff)
downloadlinux-ab34e14258cd3b6d93ce2d6539a83f740dea8219.tar.gz
linux-ab34e14258cd3b6d93ce2d6539a83f740dea8219.zip
net: skbuff: Drop unused @skb
Since its introduction in commit 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function"), pskb_carve_frag_list() never used the argument @skb. Drop it and adapt the only caller. No functional change intended. Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Michal Luczaj <mhal@rbox.co> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--net/core/skbuff.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 74ced6aebc70..a6efabff2173 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -6758,8 +6758,7 @@ static int pskb_carve(struct sk_buff *skb, const u32 off, gfp_t gfp);
/* carve out the first eat bytes from skb's frag_list. May recurse into
* pskb_carve()
*/
-static int pskb_carve_frag_list(struct sk_buff *skb,
- struct skb_shared_info *shinfo, int eat,
+static int pskb_carve_frag_list(struct skb_shared_info *shinfo, int eat,
gfp_t gfp_mask)
{
struct sk_buff *list = shinfo->frag_list;
@@ -6864,7 +6863,7 @@ static int pskb_carve_inside_nonlinear(struct sk_buff *skb, const u32 off,
skb_clone_fraglist(skb);
/* split line is in frag list */
- if (k == 0 && pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask)) {
+ if (k == 0 && pskb_carve_frag_list(shinfo, off - pos, gfp_mask)) {
/* skb_frag_unref() is not needed here as shinfo->nr_frags = 0. */
if (skb_has_frag_list(skb))
kfree_skb_list(skb_shinfo(skb)->frag_list);