File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ static inline void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb)
66
66
67
67
68
68
#ifdef CONFIG_NETPOLL
69
- static inline int netpoll_rx_on (struct sk_buff * skb )
69
+ static inline bool netpoll_rx_on (struct sk_buff * skb )
70
70
{
71
71
struct netpoll_info * npinfo = rcu_dereference_bh (skb -> dev -> npinfo );
72
72
@@ -125,19 +125,19 @@ static inline void netpoll_poll_unlock(void *have)
125
125
}
126
126
}
127
127
128
- static inline int netpoll_tx_running (struct net_device * dev )
128
+ static inline bool netpoll_tx_running (struct net_device * dev )
129
129
{
130
130
return irqs_disabled ();
131
131
}
132
132
133
133
#else
134
134
static inline bool netpoll_rx (struct sk_buff * skb )
135
135
{
136
- return 0 ;
136
+ return false ;
137
137
}
138
- static inline int netpoll_rx_on (struct sk_buff * skb )
138
+ static inline bool netpoll_rx_on (struct sk_buff * skb )
139
139
{
140
- return 0 ;
140
+ return false ;
141
141
}
142
142
static inline int netpoll_receive_skb (struct sk_buff * skb )
143
143
{
@@ -153,9 +153,9 @@ static inline void netpoll_poll_unlock(void *have)
153
153
static inline void netpoll_netdev_init (struct net_device * dev )
154
154
{
155
155
}
156
- static inline int netpoll_tx_running (struct net_device * dev )
156
+ static inline bool netpoll_tx_running (struct net_device * dev )
157
157
{
158
- return 0 ;
158
+ return false ;
159
159
}
160
160
#endif
161
161
You can’t perform that action at this time.
0 commit comments