Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- hw/sd/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 542170c3ec..b231411108 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1475,7 +1475,7 @@ static sd_rsp_type_t sd_app_command(SDState *sd, return sd_illegal; } -static int cmd_valid_while_locked(SDState *sd, SDRequest *req) +static bool cmd_valid_while_locked(SDState *sd, SDRequest *req) { /* Valid commands in locked state: * basic class (0) @@ -1489,7 +1489,7 @@ static int cmd_valid_while_locked(SDState *sd, SDRequest *req) return req->cmd == 41 || req->cmd == 42; } if (req->cmd == 16 || req->cmd == 55) { - return 1; + return true; } return sd_cmd_class[req->cmd & 0x3F] == 0 || sd_cmd_class[req->cmd & 0x3F] == 7; -- 2.15.1