"wrong timeout value in sk_wait_data()": cleanups
Subsystems (3)
PATCH 3/8 "wrong timeout value in sk_wait_data()": cleanups
From: Andrew Morton <[email protected]>
- save 4 bytes
- it's read-mostly.
Cc "David S. Miller" <[email protected]>
Acked-by Vasily Averin <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
net/core/sock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
net/core/sock.c renamed from net/core/sock.c~wrong-timeout-value-in-sk_wait_data-v2-fix +2 -1
@@ -210,7 +210,8 @@ static int sock_set_timeout(long *timeo_return -EDOM ;if (tv.tv_sec <0 ) { -static int warned =0 ; +static int warned__read_mostly ; + *timeo_p =0 ;if (warned <10 &&net_ratelimit ()) warned++;
_
From: [email protected]
Date: Mon, 09 Jul 2007 11:51:10 -0700
Quoted 9 lines
From: Andrew Morton <[email protected]>
- save 4 bytes
- it's read-mostly.
Cc "David S. Miller" <[email protected]>Acked-by Vasily Averin <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied.