rds: Replace POLLERR with EPOLLERR
Both constants are 1<<3, but EPOLLERR uses the correct annotations. Flagged by Sparse. Signed-off-by: Ujwal Kundur <ujwal.kundur@gmail.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Link: https://patch.msgid.link/20250820175550.498-2-ujwal.kundur@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
718d6e8669
commit
9308987803
+1
-1
@@ -242,7 +242,7 @@ static __poll_t rds_poll(struct file *file, struct socket *sock,
|
||||
if (rs->rs_snd_bytes < rds_sk_sndbuf(rs))
|
||||
mask |= (EPOLLOUT | EPOLLWRNORM);
|
||||
if (sk->sk_err || !skb_queue_empty(&sk->sk_error_queue))
|
||||
mask |= POLLERR;
|
||||
mask |= EPOLLERR;
|
||||
read_unlock_irqrestore(&rs->rs_recv_lock, flags);
|
||||
|
||||
/* clear state any time we wake a seen-congested socket */
|
||||
|
||||
Reference in New Issue
Block a user