mmc: sdhci: Simplify sdhci_finish_command() by clearing host->cmd at the start
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jun 2016 13:24:22 +0000 (16:24 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:37 +0000 (10:34 +0200)
commite0a5640a9996bd9afef81dcdc62a82e59321a96f
tree5698fe9d457d061e8597acd9bf79e486ca2f735d
parent64ed8dd46ba69a7f03f9019758ef35604f0cdb04
mmc: sdhci: Simplify sdhci_finish_command() by clearing host->cmd at the start

sdhci_finish_command() is going to set host->cmd to NULL. Simplify the
code by using a local variable to hold host->cmd and set host->cmd to
NULL at the start.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c