commit | 8df09ea3b8ccfe0c94844102d33fa46f57c08d9e | [log] [tgz] |
---|---|---|
author | Eric Dumazet <dada1@cosmosbay.com> | Fri Dec 21 03:07:41 2007 -0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 28 14:59:59 2008 -0800 |
tree | a7e91a1e2c9eea21b1e1a6a67bd855899627aafe | |
parent | ce55dd3610f7ac29bf8d159c2e2ace9aaf2c3038 [diff] |
[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: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>