diff options
author | Haibo Chen <[email protected]> | 2020-08-24 18:45:14 +0800 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2020-09-07 09:11:30 +0200 |
commit | 9e70ff99ee871ec85e17da7c9d05cb5fcc306050 (patch) | |
tree | 33b026ab3d4f877e5c2011397e6ba52f48825ac2 | |
parent | e449d983811211592dad6f5ef8b25d5549be5e8e (diff) |
mmc: sdhci-esdhc-imx: remove unused code
Value assigned to a variable(err) is never used, so remove it.
Signed-off-by: Haibo Chen <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 0be334759c82..a2eb36c9b1da 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -1653,10 +1653,8 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev) goto disable_ipg_clk; imx_data->pinctrl = devm_pinctrl_get(&pdev->dev); - if (IS_ERR(imx_data->pinctrl)) { - err = PTR_ERR(imx_data->pinctrl); + if (IS_ERR(imx_data->pinctrl)) dev_warn(mmc_dev(host->mmc), "could not get pinctrl\n"); - } if (esdhc_is_usdhc(imx_data)) { host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN; |