From 4e8f1be21287a101996c56fc2e22737692e2868d Mon Sep 17 00:00:00 2001 From: Mitsyanko Igor Date: Mon, 13 Aug 2012 11:04:07 +0100 Subject: [PATCH] hw/sd.c: make sd_wp_addr() return bool For the sake of code clarity Signed-off-by: Igor Mitsyanko Signed-off-by: Peter Maydell --- hw/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd.c b/hw/sd.c index 209bc19..ec26407 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -542,7 +542,7 @@ static void sd_function_switch(SDState *sd, uint32_t arg) sd->data[66] = crc & 0xff; } -static inline int sd_wp_addr(SDState *sd, uint64_t addr) +static inline bool sd_wp_addr(SDState *sd, uint64_t addr) { return test_bit(sd_addr_to_wpnum(addr), sd->wp_groups); } -- 2.7.4