From 22ed1d34789b184aaaa28c1e4620ce4467744cec Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 19:31:06 +0000 Subject: arm: remove dead assignments, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- hw/sd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hw/sd.c') 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 */ -- cgit 1.4.1