Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/ipv4: fix shadows declaration #7741

Merged
merged 1 commit into from Dec 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions net/devif/ipv4_input.c
Expand Up @@ -295,8 +295,7 @@ int ipv4_input(FAR struct net_driver_s *dev)
#ifdef CONFIG_NET_IPFORWARD
/* Try to forward the packet */

int ret = ipv4_forward(dev, ipv4);
if (ret >= 0)
if (ipv4_forward(dev, ipv4) >= 0)
{
/* The packet was forwarded. Return success; d_len will
* be set appropriately by the forwarding logic: Cleared
Expand Down