hw/sd.c: make sd_wp_addr() return bool For the sake of code clarity Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
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 @@ 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); }