Re: [PATCH net-next 1/1] net: sock: Use USEC_PER_SEC macro instead of literal 1000000

2017-02-20 Thread Feng Gao
On Tue, Feb 21, 2017 at 3:13 PM, Joe Perches wrote: > On Mon, 2017-02-20 at 22:33 +0800, f...@ikuai8.com wrote: >> From: Gao Feng >> >> 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 >> 100 in this file

Re: [PATCH net-next 1/1] net: sock: Use USEC_PER_SEC macro instead of literal 1000000

2017-02-20 Thread Joe Perches
On Mon, 2017-02-20 at 22:33 +0800, f...@ikuai8.com wrote: > From: Gao Feng > > 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 > 100 in this file. > It is minor cleanup to keep consitent. [] > diff --git

[PATCH net-next 1/1] net: sock: Use USEC_PER_SEC macro instead of literal 1000000

2017-02-20 Thread fgao
From: Gao Feng 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 100 in this file. It is minor cleanup to keep consitent. Signed-off-by: Gao Feng --- net/core/sock.c | 6 +++--- 1 file changed, 3 insertion