diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-17 05:28:51 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-06-24 10:41:42 +0200 |
commit | eded0d1a485f3e6279142b88edf444e5e764c9a6 (patch) | |
tree | 04796a9600653f6f4fde940667554f15fdc4afca | |
parent | 0e93b3b30b29b3e23eabf5ba759315cece761a9c (diff) | |
download | qemu-eded0d1a485f3e6279142b88edf444e5e764c9a6.zip qemu-eded0d1a485f3e6279142b88edf444e5e764c9a6.tar.gz qemu-eded0d1a485f3e6279142b88edf444e5e764c9a6.tar.bz2 |
hw/sd/sdcard: Have cmd_valid_while_locked() return a boolean value
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20240621080554.18986-14-philmd@linaro.org>
-rw-r--r-- | hw/sd/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1717,7 +1717,7 @@ static sd_rsp_type_t sd_app_command(SDState *sd, return sd_illegal; } -static int cmd_valid_while_locked(SDState *sd, const uint8_t cmd) +static bool cmd_valid_while_locked(SDState *sd, unsigned cmd) { /* Valid commands in locked state: * basic class (0) @@ -1731,7 +1731,7 @@ static int cmd_valid_while_locked(SDState *sd, const uint8_t cmd) return cmd == 41 || cmd == 42; } if (cmd == 16 || cmd == 55) { - return 1; + return true; } return sd_cmd_class[cmd] == 0 || sd_cmd_class[cmd] == 7; } |