]> git.baikalelectronics.ru Git - kernel.git/commit
inetpeer_gc_worker: trivial cleanup
authorxiao jin <jin.xiao@intel.com>
Fri, 25 Apr 2014 00:53:29 +0000 (08:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Apr 2014 16:52:28 +0000 (12:52 -0400)
commit8287928986f59ea9504e93606e2d437bd8b52469
tree54a7f137c47a16fb76a92253f102e4bc6179f994
parent9f33c2c9c1791342d31410acc7c3ed549e9f88c0
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>
net/ipv4/inetpeer.c