oncn-bwm/0007-fix-net_qos_stats-warning-when-qos-not-enable.patch

29 lines
777 B
Diff
Raw Normal View History

From f10ec3e0c83efedb238f1ed55e007f4905410463 Mon Sep 17 00:00:00 2001
From: kwb0523 <kwb0523@163.com>
Date: Wed, 18 Oct 2023 16:29:50 +0800
Subject: [PATCH] fix net_qos_stats warning when qos not enable
---
ko/bwm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ko/bwm.c b/ko/bwm.c
index 6be6cbe..8951217 100644
--- a/ko/bwm.c
+++ b/ko/bwm.c
@@ -310,11 +310,7 @@ static int proc_net_qos_stats_single_open(struct inode *inode, struct file *file
ret = qos_cmd_upcall(cmd);
if (ret != 0) {
BWM_LOG_ERR("read net_qos_stats failed");
- atomic_xchg(&stats_flag, 0);
- return ret;
}
- single_open(file, proc_net_qos_stats_open, NULL);
- return 0;
}
atomic_xchg(&stats_flag, 0);
return single_open(file, proc_net_qos_stats_open, NULL);
--
2.33.0