]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: mt7621-mmc: Remove unused variable in msdc_command_resp
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:14:35 +0000 (16:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:02 +0000 (21:48 +0900)
The variable resp in msdc_command_resp is once set and never read,
delete it.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 648a2dd1436e936209a9fa5fa31e45dc8d8712d6..7cfadb41a53dea989e7231c90c365b629c12e97c 100644 (file)
@@ -886,13 +886,10 @@ static unsigned int msdc_command_resp(struct msdc_host   *host,
        void __iomem *base = host->base;
        u32 opcode = cmd->opcode;
        //u32 rawcmd;
-       u32 resp;
        u32 wints = MSDC_INT_CMDRDY  | MSDC_INT_RSPCRCERR  | MSDC_INT_CMDTMO  |
                    MSDC_INT_ACMDRDY | MSDC_INT_ACMDCRCERR | MSDC_INT_ACMDTMO |
                    MSDC_INT_ACMD19_DONE;
 
-       resp = host->cmd_rsp;
-
        BUG_ON(in_interrupt());
        //init_completion(&host->cmd_done);
        //sdr_set_bits(MSDC_INTEN, wints);