From: Philippe Mathieu-Daudé Date: Mon, 4 Sep 2023 16:12:27 +0000 (+0200) Subject: net/eth: Clean up local variable shadowing X-Git-Tag: v8.2.0-rc0~96^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1728593a82cdd8ffcd2a5a759fb301c71ae4c251;p=thirdparty%2Fqemu.git net/eth: Clean up local variable shadowing Fix: net/eth.c:435:20: error: declaration shadows a local variable [-Werror,-Wshadow] size_t input_size = iov_size(pkt, pkt_frags); ^ net/eth.c:413:16: note: previous declaration is here size_t input_size = iov_size(pkt, pkt_frags); ^ Suggested-by: Akihiko Odaki Signed-off-by: Philippe Mathieu-Daudé Message-ID: <20230904161235.84651-16-philmd@linaro.org> Reviewed-by: Eric Blake Reviewed-by: Akihiko Odaki Signed-off-by: Markus Armbruster --- diff --git a/net/eth.c b/net/eth.c index 649e66bb1fe..3f680cc033a 100644 --- a/net/eth.c +++ b/net/eth.c @@ -432,8 +432,6 @@ _eth_get_rss_ex_src_addr(const struct iovec *pkt, int pkt_frags, } if (opthdr.type == IP6_OPT_HOME) { - size_t input_size = iov_size(pkt, pkt_frags); - if (input_size < opt_offset + sizeof(opthdr)) { return false; }