]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix unused variables in __gnet_stats_copy_basic_cpu()
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 7 Oct 2014 00:01:33 +0000 (17:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2014 04:10:49 +0000 (00:10 -0400)
commit5ac2c849d29ad1805d03aaccf9cabf8118f5e91b
treee3fdb0296ca14cbff970df355798c7bbf75681d8
parent9608c996906096b31c78c402791e3395f9117c90
net_sched: fix unused variables in __gnet_stats_copy_basic_cpu()

Probably not a big deal, but we'd better just use the
one we get in retry loop.

Fixes: commit f8cc4369c6929818661e22d5 ("net: sched: make bstats per cpu and estimator RCU safe")
Reported-by: Joe Perches <joe@perches.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gen_stats.c