Skip to content

Commit

Permalink
net/eth: Clean up local variable shadowing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and Markus Armbruster committed Sep 29, 2023
1 parent 09e24b1 commit 1728593
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1728593

Please sign in to comment.