Skip to content

Commit

Permalink
[NETPOLL]: wrong return for null netpoll_poll_lock()
Browse files Browse the repository at this point in the history
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: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Dooks authored and David S. Miller committed Oct 12, 2005
1 parent ab4060e commit afb997c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netpoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static inline void netpoll_poll_unlock(void *have)

#else
#define netpoll_rx(a) 0
#define netpoll_poll_lock(a) 0
#define netpoll_poll_lock(a) NULL
#define netpoll_poll_unlock(a)
#endif

Expand Down

0 comments on commit afb997c

Please sign in to comment.