diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2018-02-22 21:23:16 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-03-05 07:04:29 -0500 |
commit | ec10ab572e4060f6ef586952196ef80f3b3b7f3b (patch) | |
tree | fb3884e8473ce658d91577ffc2f4d1d83caad896 | |
parent | 64c1412b77d08df1bc4ddea1187eb8a76df1186c (diff) |
mmc: dw_mmc: Remove prev_state and state assignment for STATE_SENDING_CMD
Clang reports a compile warning:
drivers/mmc/host/dw_mmc.c:2124:5: warning: Value stored to 'prev_state'
is never read
By checking the code, prev_state and state assignment for
STATE_SENDING_CMD is indeed never used after jumping to unlock tag.
So remove it.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 5332120030e4..aecc3e255507 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
@@ -2001,7 +2001,6 @@ static void dw_mci_tasklet_func(unsigned long priv) | |||
2001 | set_bit(EVENT_CMD_COMPLETE, &host->completed_events); | 2001 | set_bit(EVENT_CMD_COMPLETE, &host->completed_events); |
2002 | err = dw_mci_command_complete(host, cmd); | 2002 | err = dw_mci_command_complete(host, cmd); |
2003 | if (cmd == mrq->sbc && !err) { | 2003 | if (cmd == mrq->sbc && !err) { |
2004 | prev_state = state = STATE_SENDING_CMD; | ||
2005 | __dw_mci_start_request(host, host->slot, | 2004 | __dw_mci_start_request(host, host->slot, |
2006 | mrq->cmd); | 2005 | mrq->cmd); |
2007 | goto unlock; | 2006 | goto unlock; |