Commit afb997c6 authored by Ben Dooks's avatar Ben Dooks Committed by David S. Miller

[NETPOLL]: wrong return for null netpoll_poll_lock()

When netpoll is not being used, the macro that
defines the removed routing netpoll_poll_lock
defines the return as zero, but the real
routine returns a `void *`
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab4060e8
...@@ -86,7 +86,7 @@ static inline void netpoll_poll_unlock(void *have) ...@@ -86,7 +86,7 @@ static inline void netpoll_poll_unlock(void *have)
#else #else
#define netpoll_rx(a) 0 #define netpoll_rx(a) 0
#define netpoll_poll_lock(a) 0 #define netpoll_poll_lock(a) NULL
#define netpoll_poll_unlock(a) #define netpoll_poll_unlock(a)
#endif #endif
......
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