]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: limit scope of a skb_zerocopy_iter_stream var
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 27 Jun 2024 12:59:45 +0000 (13:59 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Jul 2024 10:06:50 +0000 (12:06 +0200)
commit2ca58ed21cefdda45520a0a2b1980c008efe9874
tree49d28d7d73115a7f25d5e52cac07fda75a117dbd
parent060f4ba6e40338a70932603a3564903acf5f5734
net: limit scope of a skb_zerocopy_iter_stream var

skb_zerocopy_iter_stream() only uses @orig_uarg in the !link_skb path,
and we can move the local variable in the appropriate block.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/skbuff.c