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 a8ec589d1359..7548d8a11bdf 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1257,12 +1257,12 @@ static void tun_net_init(struct net_device *dev) | |||
1257 | /* Character device part */ | 1257 | /* Character device part */ |
1258 | 1258 | ||
1259 | /* Poll */ | 1259 | /* Poll */ |
1260 | static unsigned int tun_chr_poll(struct file *file, poll_table *wait) | 1260 | static __poll_t tun_chr_poll(struct file *file, poll_table *wait) |
1261 | { | 1261 | { |
1262 | struct tun_file *tfile = file->private_data; | 1262 | struct tun_file *tfile = file->private_data; |
1263 | struct tun_struct *tun = tun_get(tfile); | 1263 | struct tun_struct *tun = tun_get(tfile); |
1264 | struct sock *sk; | 1264 | struct sock *sk; |
1265 | unsigned int mask = 0; | 1265 | __poll_t mask = 0; |
1266 | 1266 | ||
1267 | if (!tun) | 1267 | if (!tun) |
1268 | return POLLERR; | 1268 | return POLLERR; |