diff mbox series

[2/6] system/dirtylimit: Drop the reduplicative check

Message ID b370a33be0a1c393cfcb2552c6305c42463f8156.1697502089.git.yong.huang@smartx.com
State New
Headers show
Series dirtylimit: miscellaneous patches | expand

Commit Message

Yong Huang Oct. 17, 2023, 11:36 a.m. UTC
Checking if dirty limit is in service is done by the
dirtylimit_query_all function, drop the reduplicative
check in the qmp_query_vcpu_dirty_limit function.

Signed-off-by: Hyman Huang <yong.huang@smartx.com>
---
 system/dirtylimit.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Fabiano Rosas Oct. 19, 2023, 7:36 p.m. UTC | #1
Hyman Huang <yong.huang@smartx.com> writes:

> Checking if dirty limit is in service is done by the
> dirtylimit_query_all function, drop the reduplicative
> check in the qmp_query_vcpu_dirty_limit function.
>
> Signed-off-by: Hyman Huang <yong.huang@smartx.com>

Reviewed-by: Fabiano Rosas <farosas@suse.de>
diff mbox series

Patch

diff --git a/system/dirtylimit.c b/system/dirtylimit.c
index 3666c4cb7c..495c7a7082 100644
--- a/system/dirtylimit.c
+++ b/system/dirtylimit.c
@@ -652,10 +652,6 @@  static struct DirtyLimitInfoList *dirtylimit_query_all(void)
 
 struct DirtyLimitInfoList *qmp_query_vcpu_dirty_limit(Error **errp)
 {
-    if (!dirtylimit_in_service()) {
-        return NULL;
-    }
-
     return dirtylimit_query_all();
 }