migration: remove unused field bytes_xfer

MigrationState->bytes_xfer is only set to 0 in migrate_init().

Remove this unnecessary field.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20190402003106.17614-1-richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
Wei Yang 2019-04-02 08:31:06 +08:00 committed by Dr. David Alan Gilbert
parent 32e70aad7e
commit 14adf288d3
2 changed files with 0 additions and 2 deletions

View File

@ -1699,7 +1699,6 @@ void migrate_init(MigrationState *s)
* parameters/capabilities that the user set, and
* locks.
*/
s->bytes_xfer = 0;
s->cleanup_bh = 0;
s->to_dst_file = NULL;
s->state = MIGRATION_STATUS_NONE;

View File

@ -132,7 +132,6 @@ struct MigrationState
DeviceState parent_obj;
/*< public >*/
size_t bytes_xfer;
QemuThread thread;
QEMUBH *cleanup_bh;
QEMUFile *to_dst_file;