aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorHyman Huang <yong.huang@smartx.com>2023-11-01 22:04:05 +0800
committerJuan Quintela <quintela@redhat.com>2023-11-03 07:48:25 +0100
commit78a7ef15804c0c0a886fcf9f12e5464f8eddd20c (patch)
tree69f2d757e637b97326fff6e414d4b7b93566f399 /system
parentcce10a1f0c827653c00e81b6d7865cf974275994 (diff)
system/dirtylimit: Drop the reduplicative check
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> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <df9c3514933ff6750ef88068af18d3054bedf746.1698847223.git.yong.huang@smartx.com>
Diffstat (limited to 'system')
-rw-r--r--system/dirtylimit.c4
1 files changed, 0 insertions, 4 deletions
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();
}