From: xiao jin Date: Fri, 25 Apr 2014 00:53:29 +0000 (+0800) Subject: inetpeer_gc_worker: trivial cleanup X-Git-Tag: v3.16-rc1~27^2~318 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=851bdd11ca8b855ee946f50dac0850a4bec875c9;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-by: David Cohen Signed-off-by: David S. Miller --- 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);