projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
879bf4a
)
hw/sd.c: make sd_wp_addr() return bool
author
Mitsyanko Igor
<i.mitsyanko@samsung.com>
Mon, 13 Aug 2012 10:04:07 +0000
(11:04 +0100)
committer
Peter Maydell
<peter.maydell@linaro.org>
Mon, 13 Aug 2012 10:04:07 +0000
(11:04 +0100)
For the sake of code clarity
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd.c
patch
|
blob
|
history
diff --git
a/hw/sd.c
b/hw/sd.c
index 209bc1936c390e6a7b2ff2f302d96bcbe6426a1d..ec2640754301c2724c23fd495fbf9b4bfcfcde57 100644
(file)
--- 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);
}