aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>2021-06-14 10:29:30 +0200
committerMax Reitz <mreitz@redhat.com>2021-07-19 17:38:38 +0200
commit4153b553bd81e5b270b816699184df5d74c46805 (patch)
tree92e46608302ce0e0fe6c45bf58ed6375c178a9c0 /plugins
parent2196c341f7d0df161d412d3d7ea81545ab60ea2b (diff)
downloadqemu-4153b553bd81e5b270b816699184df5d74c46805.zip
qemu-4153b553bd81e5b270b816699184df5d74c46805.tar.gz
qemu-4153b553bd81e5b270b816699184df5d74c46805.tar.bz2
block/blkdebug: remove new_state field and instead use a local variable
There seems to be no benefit in using a field. Replace it with a local variable, and move the state update before the yields. The state update has do be done before the yields because now using a local variable does not allow the new updated state to be visible by the other yields. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Message-Id: <20210614082931.24925-6-eesposit@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions