]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8e245c974407ab3f98031cebbb8a9896ece2f50
tree83fcd92867bfbb3fa61c71ba4eea3f8b0e3b14bb
parentfb063c5990378515fdbb1fa5544b4a61bc21e448
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