Skip to content

Commit

Permalink
system/dirtylimit: Drop the reduplicative check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
HuangSuiXiao authored and Juan Quintela committed Nov 3, 2023
1 parent cce10a1 commit 78a7ef1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions system/dirtylimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 78a7ef1

Please sign in to comment.