diff options
author | Mitsyanko Igor <i.mitsyanko@samsung.com> | 2012-08-13 11:04:07 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-08-13 11:04:07 +0100 |
commit | 4e8f1be21287a101996c56fc2e22737692e2868d (patch) | |
tree | b2e8996177cb935b793cde844f95f1f0f37632bb | |
parent | 879bf4a716410c9c7933dea5a5f3d3867734efb6 (diff) |
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>
-rw-r--r-- | hw/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |