mirror of
https://github.com/mborgerson/xemu.git
synced 2025-10-29 09:11:06 +00:00
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 <akihiko.odaki@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230904161235.84651-16-philmd@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
09e24b10de
commit
1728593a82
@ -432,8 +432,6 @@ _eth_get_rss_ex_src_addr(const struct iovec *pkt, int pkt_frags,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (opthdr.type == IP6_OPT_HOME) {
|
if (opthdr.type == IP6_OPT_HOME) {
|
||||||
size_t input_size = iov_size(pkt, pkt_frags);
|
|
||||||
|
|
||||||
if (input_size < opt_offset + sizeof(opthdr)) {
|
if (input_size < opt_offset + sizeof(opthdr)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user