mmc: sh_mmcif: remove redundant initialization of 'opc'
authorColin Ian King <colin.king@canonical.com>
Wed, 17 Jan 2018 13:41:57 +0000 (13:41 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Jan 2018 08:08:11 +0000 (09:08 +0100)
Variable opc is initialized with a value that is never read, opc
is later re-assigned a newer value, hence the initialization can
be removed.

Cleans up clang warning:
drivers/mmc/host/sh_mmcif.c:919:6: warning: Value stored to 'opc'
during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sh_mmcif.c

index 53fb18b..7bb00c6 100644 (file)
@@ -916,7 +916,7 @@ static void sh_mmcif_start_cmd(struct sh_mmcif_host *host,
                               struct mmc_request *mrq)
 {
        struct mmc_command *cmd = mrq->cmd;
-       u32 opc = cmd->opcode;
+       u32 opc;
        u32 mask = 0;
        unsigned long flags;