hw/char/pl011: Simplify a bit pl011_can_receive()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 19 Feb 2025 14:35:53 +0000 (15:35 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 4 Mar 2025 13:45:34 +0000 (14:45 +0100)
commitf33af61dbab3b6fe0923bd829461584eaa41039e
treea92eaee1df399654052c24803a65e26abaa655cc
parentabf2b6a028670bd2890bb3aee7e103fe53e4b0df
hw/char/pl011: Simplify a bit pl011_can_receive()

Introduce 'fifo_depth' and 'fifo_available' local variables
to better express the 'r' variable use.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Luc Michel <luc.michel@amd.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250220092903.3726-3-philmd@linaro.org>
hw/char/pl011.c