ipv6: refactor __ipv6_dev_ac_inc()
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 11 Sep 2014 22:35:12 +0000 (15:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 20:38:42 +0000 (16:38 -0400)
commit83aa29eefdb152d65e65a90605593766b4f793ef
treeff658963e930a203ca95648fd7fef850186cdb23
parent013b4d90387a5dca54281263e0d4650db97bd67c
ipv6: refactor __ipv6_dev_ac_inc()

Refactor out allocation and initialization and make
the refcount code more readable.

Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/anycast.c