o ipx: fix var shadowing paramente with CONFIG_IPX_INTERN is enabled

Which is 0.1% of the times, I'll have to research usage and eventually
kill this uglymoron that is responsible for 9 out of 10 "ipx is not
working with mars_nwe, why?" answer "Disable the damn CONFIG_IPX_INTERN
and be happy!" Thanks to Geert for reporting thisn in lkml.
parent ca8658e8
...@@ -269,7 +269,7 @@ static struct sock *ipxitf_find_socket(struct ipx_interface *intrfc, ...@@ -269,7 +269,7 @@ static struct sock *ipxitf_find_socket(struct ipx_interface *intrfc,
#ifdef CONFIG_IPX_INTERN #ifdef CONFIG_IPX_INTERN
static struct sock *ipxitf_find_internal_socket(struct ipx_interface *intrfc, static struct sock *ipxitf_find_internal_socket(struct ipx_interface *intrfc,
unsigned char *node, unsigned char *ipx_node,
unsigned short port) unsigned short port)
{ {
struct sock *s; struct sock *s;
...@@ -282,7 +282,7 @@ static struct sock *ipxitf_find_internal_socket(struct ipx_interface *intrfc, ...@@ -282,7 +282,7 @@ static struct sock *ipxitf_find_internal_socket(struct ipx_interface *intrfc,
struct ipx_opt *ipxs = ipx_sk(s); struct ipx_opt *ipxs = ipx_sk(s);
if (ipxs->port == port && if (ipxs->port == port &&
!memcmp(node, ipxs->node, IPX_NODE_LEN)) !memcmp(ipx_node, ipxs->node, IPX_NODE_LEN))
goto found; goto found;
} }
s = NULL; s = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment