On 9/26/21 6:26 PM, Philippe Mathieu-Daudé wrote:
cpu_class_init() always register cpu_common_has_work() as
CPUClass::has_work() handler, so the assertion check in
cpu_has_work() is pointless.
Since cpu_common_has_work() simply returns 'false', we can
inline it in cpu_has_work(), improving the function readability.

Suggested-by: Richard Henderson<[email protected]>
Signed-off-by: Philippe Mathieu-Daudé<[email protected]>
---
  hw/core/cpu-common.c | 6 ------
  softmmu/cpus.c       | 6 ++++--
  2 files changed, 4 insertions(+), 8 deletions(-)

Reviewed-by: Richard Henderson <[email protected]>

r~

Reply via email to