diff options
-rw-r--r-- | net/ipv4/inetpeer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c index 6cbce96a54ce..771031dfbd0f 100644 --- a/net/ipv4/inetpeer.c +++ b/net/ipv4/inetpeer.c | |||
@@ -158,7 +158,7 @@ static void unlink_from_unused(struct inet_peer *p) | |||
158 | #define lookup(_daddr,_stack) \ | 158 | #define lookup(_daddr,_stack) \ |
159 | ({ \ | 159 | ({ \ |
160 | struct inet_peer *u, **v; \ | 160 | struct inet_peer *u, **v; \ |
161 | if (_stack) { \ | 161 | if (_stack != NULL) { \ |
162 | stackptr = _stack; \ | 162 | stackptr = _stack; \ |
163 | *stackptr++ = &peer_root; \ | 163 | *stackptr++ = &peer_root; \ |
164 | } \ | 164 | } \ |
@@ -169,7 +169,7 @@ static void unlink_from_unused(struct inet_peer *p) | |||
169 | v = &u->avl_left; \ | 169 | v = &u->avl_left; \ |
170 | else \ | 170 | else \ |
171 | v = &u->avl_right; \ | 171 | v = &u->avl_right; \ |
172 | if (_stack) \ | 172 | if (_stack != NULL) \ |
173 | *stackptr++ = v; \ | 173 | *stackptr++ = v; \ |
174 | u = *v; \ | 174 | u = *v; \ |
175 | } \ | 175 | } \ |