aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/appletalk/ipddp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/appletalk/ipddp.c')
-rw-r--r--drivers/net/appletalk/ipddp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c
index aaf14d306a4..eb0448b03f4 100644
--- a/drivers/net/appletalk/ipddp.c
+++ b/drivers/net/appletalk/ipddp.c
@@ -230,9 +230,9 @@ static int ipddp_delete(struct ipddp_route *rt)
230 spin_lock_bh(&ipddp_route_lock); 230 spin_lock_bh(&ipddp_route_lock);
231 while((tmp = *r) != NULL) 231 while((tmp = *r) != NULL)
232 { 232 {
233 if(tmp->ip == rt->ip 233 if(tmp->ip == rt->ip &&
234 && tmp->at.s_net == rt->at.s_net 234 tmp->at.s_net == rt->at.s_net &&
235 && tmp->at.s_node == rt->at.s_node) 235 tmp->at.s_node == rt->at.s_node)
236 { 236 {
237 *r = tmp->next; 237 *r = tmp->next;
238 spin_unlock_bh(&ipddp_route_lock); 238 spin_unlock_bh(&ipddp_route_lock);
@@ -255,9 +255,9 @@ static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt)
255 255
256 for(f = ipddp_route_list; f != NULL; f = f->next) 256 for(f = ipddp_route_list; f != NULL; f = f->next)
257 { 257 {
258 if(f->ip == rt->ip 258 if(f->ip == rt->ip &&
259 && f->at.s_net == rt->at.s_net 259 f->at.s_net == rt->at.s_net &&
260 && f->at.s_node == rt->at.s_node) 260 f->at.s_node == rt->at.s_node)
261 return (f); 261 return (f);
262 } 262 }
263 263