OSDN Git Service

mmc: sdhci-esdhc-imx: merge the same register check into one place
authorDong Aisheng <aisheng.dong@freescale.com>
Wed, 27 May 2015 10:13:26 +0000 (18:13 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:07:15 +0000 (09:07 +0200)
commit915be485bdf24f2261b4dc776625c930e1491d7a
treeb924f8c1585a9d0f85f8bcb22e494e92fd3e2303
parentb69587e2d5b09a192c45c604ea1f9e8d51f4c3a1
mmc: sdhci-esdhc-imx: merge the same register check into one place

In esdhc_writel_le() function, there's duplicated checking of the same
register as follows:
"if (unlikely(reg == SDHCI_INT_ENABLE || reg == SDHCI_SIGNAL_ENABLE))".
Merge them into one and remove the duplicated one.

Signed-off-by: Dong Aisheng <aisheng.dong@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c