mmc: core: Minor simplifications to __mmc_switch
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 28 Jan 2014 13:05:39 +0000 (14:05 +0100)
committerChris Ball <chris@printf.net>
Sun, 23 Feb 2014 15:40:34 +0000 (10:40 -0500)
commit636bd13c12d2331ad835b89681428eccb4cf102e
tree83fcd92867bfbb3fa61c71ba4eea3f8b0e3b14bb
parent4509f847751c9d2a724f37fe831393fbac34b80f
mmc: core: Minor simplifications to __mmc_switch

Instead of using several references to card->host, let's use a local
variable. That means we can remove the BUG_ON verifications for the
same pointers.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/mmc_ops.c