qemu-file: remove shutdown member
commitac7d25b8163cfd16604cd7d92135dd14713d084b
authorJuan Quintela <quintela@redhat.com>
Thu, 4 May 2023 11:38:38 +0000 (4 13:38 +0200)
committerJuan Quintela <quintela@redhat.com>
Fri, 5 May 2023 00:01:59 +0000 (5 02:01 +0200)
treeeb230d65cf45d420eb964e38a5147fcb3a8baa27
parent27a1243f14af1bc9430c94d5c13f51c734788959
qemu-file: remove shutdown member

The first thing that we do after setting the shutdown value is set the
error as -EIO if there is not a previous error.

So this value is redundant.  Just remove it and use
qemu_file_get_error() in the places that it was tested.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20230504113841.23130-7-quintela@redhat.com>
migration/qemu-file.c