diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-04-02 08:31:06 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-08-14 17:33:14 +0100 |
commit | 14adf288d3a1617bf9ccf2da346b2b002a07d8f2 (patch) | |
tree | bae7a0b51cc7ad5d16cbc776d7f434bbb4c09f24 /migration | |
parent | 32e70aad7e984f7a609850985895e97fc03579ab (diff) | |
download | qemu-14adf288d3a1617bf9ccf2da346b2b002a07d8f2.zip qemu-14adf288d3a1617bf9ccf2da346b2b002a07d8f2.tar.gz qemu-14adf288d3a1617bf9ccf2da346b2b002a07d8f2.tar.bz2 |
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>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/migration.c | 1 | ||||
-rw-r--r-- | migration/migration.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/migration/migration.c b/migration/migration.c index 8331e62..12b8e5d 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -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; diff --git a/migration/migration.h b/migration/migration.h index 1fdd7b2..5bc6070 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -132,7 +132,6 @@ struct MigrationState DeviceState parent_obj; /*< public >*/ - size_t bytes_xfer; QemuThread thread; QEMUBH *cleanup_bh; QEMUFile *to_dst_file; |