Skip to content
Commit 8df09ea3 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

[SOCK] Avoid integer divides where not necessary in include/net/sock.h



Because sk_wmem_queued, sk_sndbuf are signed, a divide per two
may force compiler to use an integer divide.

We can instead use a right shift.

Signed-off-by: default avatarEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce55dd36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment