diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/inetpeer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index e15c0862a686..c27c8f10ebdc 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h | |||
@@ -104,7 +104,7 @@ static inline bool inetpeer_ptr_set_peer(unsigned long *ptr, struct inet_peer *p | |||
104 | unsigned long val = (unsigned long) peer; | 104 | unsigned long val = (unsigned long) peer; |
105 | unsigned long orig = *ptr; | 105 | unsigned long orig = *ptr; |
106 | 106 | ||
107 | if (!(orig & INETPEER_BASE_BIT) || !val || | 107 | if (!(orig & INETPEER_BASE_BIT) || |
108 | cmpxchg(ptr, orig, val) != orig) | 108 | cmpxchg(ptr, orig, val) != orig) |
109 | return false; | 109 | return false; |
110 | return true; | 110 | return true; |