diff options
author | Christoph Hellwig <hch@lst.de> | 2018-07-30 10:42:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-30 19:10:25 +0300 |
commit | d8bbd13beeaacd6494954bf5b945b54ccb2af309 (patch) | |
tree | e3c719c6148c5a38aedc727618122e3e6e2a6b04 /drivers/net/ethernet/cavium | |
parent | dd979b4df817e9976f18fb6f9d134d6bc4a3c317 (diff) | |
download | linux-d8bbd13beeaacd6494954bf5b945b54ccb2af309.tar.xz |
net: don not detour through struct sock to find the poll waitqueue
For any open socket file descriptor sock->sk->sk_wq->wait will always
point to sock->wq->wait. That means we can do the shorter dereference
and removal a NULL check and don't have to not worry about any RCU
protection.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium')
0 files changed, 0 insertions, 0 deletions