mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/hyperv: replace assert(false) with g_assert_not_reached()
This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20240919044641.386068-9-pierrick.bouvier@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
d125e4af6d
commit
159e011a9f
2 changed files with 9 additions and 9 deletions
|
@ -1874,7 +1874,7 @@ static void send_create_gpadl(VMBus *vmbus)
|
|||
}
|
||||
}
|
||||
|
||||
assert(false);
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
static bool complete_create_gpadl(VMBus *vmbus)
|
||||
|
@ -1889,7 +1889,7 @@ static bool complete_create_gpadl(VMBus *vmbus)
|
|||
}
|
||||
}
|
||||
|
||||
assert(false);
|
||||
g_assert_not_reached();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1931,7 +1931,7 @@ static void send_teardown_gpadl(VMBus *vmbus)
|
|||
}
|
||||
}
|
||||
|
||||
assert(false);
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
static bool complete_teardown_gpadl(VMBus *vmbus)
|
||||
|
@ -1946,7 +1946,7 @@ static bool complete_teardown_gpadl(VMBus *vmbus)
|
|||
}
|
||||
}
|
||||
|
||||
assert(false);
|
||||
g_assert_not_reached();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1996,7 +1996,7 @@ static void send_open_channel(VMBus *vmbus)
|
|||
}
|
||||
}
|
||||
|
||||
assert(false);
|
||||
g_assert_not_reached();
|
||||
}
|
||||
|
||||
static bool complete_open_channel(VMBus *vmbus)
|
||||
|
@ -2020,7 +2020,7 @@ static bool complete_open_channel(VMBus *vmbus)
|
|||
}
|
||||
}
|
||||
|
||||
assert(false);
|
||||
g_assert_not_reached();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue