hw/sd/sdcard: Simplify cmd_valid_while_locked()
commitef6dd5f5c41b2d8fcfd72c946ac224e6c3aa1363
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 26 Jun 2018 17:46:44 +0000 (26 14:46 -0300)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 25 Oct 2020 23:36:52 +0000 (26 00:36 +0100)
treea3ad2a1fc61796b3751134ec004da30bfb81c9c3
parent9820502cad6c1b5810d90c7189badef882471dc7
hw/sd/sdcard: Simplify cmd_valid_while_locked()

cmd_valid_while_locked() only needs to read SDRequest->cmd,
pass it directly and make it const.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200630133912.9428-13-f4bug@amsat.org>
hw/sd/sd.c