mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-04 07:41:56 +07:00
xfrm: remove unnecessary check in xfrmi_get_stats64
if tstats of a device is not allocated, this device is not registered correctly and can not be used. Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
abf1a08ff3
commit
b7138fddd6
@ -561,9 +561,6 @@ static void xfrmi_get_stats64(struct net_device *dev,
|
|||||||
{
|
{
|
||||||
int cpu;
|
int cpu;
|
||||||
|
|
||||||
if (!dev->tstats)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for_each_possible_cpu(cpu) {
|
for_each_possible_cpu(cpu) {
|
||||||
struct pcpu_sw_netstats *stats;
|
struct pcpu_sw_netstats *stats;
|
||||||
struct pcpu_sw_netstats tmp;
|
struct pcpu_sw_netstats tmp;
|
||||||
|
Loading…
Reference in New Issue
Block a user