From: Mitsyanko Igor Date: Mon, 13 Aug 2012 10:04:07 +0000 (+0100) Subject: hw/sd.c: make sd_wp_addr() return bool X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~117^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e8f1be21287a101996c56fc2e22737692e2868d;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/hw/sd.c b/hw/sd.c index 209bc1936c..ec26407543 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); }