summaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 19:31:06 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 19:31:06 +0000
commit22ed1d34789b184aaaa28c1e4620ce4467744cec (patch)
tree1402cbaab355bffa77a60e37c74ef54c3032b45d /hw/sd.c
parent7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450 (diff)
downloadqemu-22ed1d34789b184aaaa28c1e4620ce4467744cec.tar.gz
qemu-22ed1d34789b184aaaa28c1e4620ce4467744cec.tar.bz2
qemu-22ed1d34789b184aaaa28c1e4620ce4467744cec.zip
arm: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/sd.c b/hw/sd.c
index cc2839d1a5..c928120abd 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -1143,12 +1143,8 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
}
static sd_rsp_type_t sd_app_command(SDState *sd,
- SDRequest req) {
- uint32_t rca;
-
- if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc)
- rca = req.arg >> 16;
-
+ SDRequest req)
+{
DPRINTF("ACMD%d 0x%08x\n", req.cmd, req.arg);
switch (req.cmd) {
case 6: /* ACMD6: SET_BUS_WIDTH */