diff options
author | xiao jin <jin.xiao@intel.com> | 2014-04-25 08:53:29 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-26 12:52:28 -0400 |
commit | 851bdd11ca8b855ee946f50dac0850a4bec875c9 (patch) | |
tree | 54a7f137c47a16fb76a92253f102e4bc6179f994 /net | |
parent | 1818ce4dc59a71a53faa33a7ca050ca9c406bf66 (diff) | |
download | op-kernel-dev-851bdd11ca8b855ee946f50dac0850a4bec875c9.zip op-kernel-dev-851bdd11ca8b855ee946f50dac0850a4bec875c9.tar.gz |
inetpeer_gc_worker: trivial cleanup
Do not initialize list twice.
list_replace_init() already takes care of initializing list.
We don't need to initialize it with LIST_HEAD() beforehand.
Signed-off-by: xiao jin <jin.xiao@intel.com>
Reviewed-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/inetpeer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c index 48f4244..c98cf14 100644 --- a/net/ipv4/inetpeer.c +++ b/net/ipv4/inetpeer.c @@ -120,7 +120,7 @@ int inet_peer_maxttl __read_mostly = 10 * 60 * HZ; /* usual time to live: 10 min static void inetpeer_gc_worker(struct work_struct *work) { struct inet_peer *p, *n, *c; - LIST_HEAD(list); + struct list_head list; spin_lock_bh(&gc_lock); list_replace_init(&gc_list, &list); |