mmc: dw_mmc: Remove prev_state and state assignment for STATE_SENDING_CMD
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 23 Feb 2018 02:23:16 +0000 (10:23 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Mar 2018 12:04:29 +0000 (13:04 +0100)
commitec10ab572e4060f6ef586952196ef80f3b3b7f3b
treefb3884e8473ce658d91577ffc2f4d1d83caad896
parent64c1412b77d08df1bc4ddea1187eb8a76df1186c
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>
drivers/mmc/host/dw_mmc.c