Skip to content

Commit 844ed0f

Browse files
avihai1122legoater
authored andcommitted
migration: Drop migration_is_device()
After being removed from VFIO, migration_is_device() no longer has any users. Drop it. Signed-off-by: Avihai Horon <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> Acked-by: Peter Xu <[email protected]> Tested-by: Joao Martins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Cédric Le Goater <[email protected]>
1 parent 7d5d9c8 commit 844ed0f

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/migration/misc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ void migration_object_init(void);
5454
void migration_shutdown(void);
5555

5656
bool migration_is_active(void);
57-
bool migration_is_device(void);
5857
bool migration_is_running(void);
5958
bool migration_thread_is_self(void);
6059

migration/migration.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,13 +1645,6 @@ bool migration_is_active(void)
16451645
s->state == MIGRATION_STATUS_POSTCOPY_ACTIVE);
16461646
}
16471647

1648-
bool migration_is_device(void)
1649-
{
1650-
MigrationState *s = current_migration;
1651-
1652-
return s->state == MIGRATION_STATUS_DEVICE;
1653-
}
1654-
16551648
bool migration_thread_is_self(void)
16561649
{
16571650
MigrationState *s = current_migration;

0 commit comments

Comments
 (0)