Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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