summaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
authorMitsyanko Igor <i.mitsyanko@samsung.com>2012-08-13 11:04:07 +0100
committerPeter Maydell <peter.maydell@linaro.org>2012-08-13 11:04:07 +0100
commit4e8f1be21287a101996c56fc2e22737692e2868d (patch)
treeb2e8996177cb935b793cde844f95f1f0f37632bb /hw/sd.c
parent879bf4a716410c9c7933dea5a5f3d3867734efb6 (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>
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c2
1 files changed, 1 insertions, 1 deletions
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);
}