diff options
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 95749006d687..130b049ac3da 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1248,12 +1248,12 @@ static void tun_net_init(struct net_device *dev) | |||
1248 | /* Character device part */ | 1248 | /* Character device part */ |
1249 | 1249 | ||
1250 | /* Poll */ | 1250 | /* Poll */ |
1251 | static unsigned int tun_chr_poll(struct file *file, poll_table *wait) | 1251 | static __poll_t tun_chr_poll(struct file *file, poll_table *wait) |
1252 | { | 1252 | { |
1253 | struct tun_file *tfile = file->private_data; | 1253 | struct tun_file *tfile = file->private_data; |
1254 | struct tun_struct *tun = tun_get(tfile); | 1254 | struct tun_struct *tun = tun_get(tfile); |
1255 | struct sock *sk; | 1255 | struct sock *sk; |
1256 | unsigned int mask = 0; | 1256 | __poll_t mask = 0; |
1257 | 1257 | ||
1258 | if (!tun) | 1258 | if (!tun) |
1259 | return POLLERR; | 1259 | return POLLERR; |