]> git.baikalelectronics.ru Git - kernel.git/commit
net: sock: Use USEC_PER_SEC macro instead of literal 1000000
authorGao Feng <fgao@ikuai8.com>
Tue, 21 Feb 2017 09:09:19 +0000 (17:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2017 17:25:21 +0000 (12:25 -0500)
commit3eec4ac0919ddc92cef7be75fc728d130a94ae92
treeade08c5030db335c54d3ad32c02b39b8efeaee05
parent00af6528567640b96fc8fad2cc4a5a35f48029d8
net: sock: Use USEC_PER_SEC macro instead of literal 1000000

The USEC_PER_SEC is used once in sock_set_timeout as the max value of
tv_usec. But there are other similar codes which use the literal
1000000 in this file.
It is minor cleanup to keep consitent.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c