mmc: dw_mmc-starfive: Fix initialization of prev_err
authorWilliam Qiu <william.qiu@starfivetech.com>
Tue, 7 Mar 2023 02:46:46 +0000 (10:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 9 Mar 2023 14:33:51 +0000 (15:33 +0100)
commit92771cdd90de64b15e65f3c88d6c6199bd5f33f5
treeb2d869e2debb97526abeea130a067f6f49162f3f
parent11440da77d6020831ee6f9ce4551b545dea789ee
mmc: dw_mmc-starfive: Fix initialization of prev_err

Fix a bug by making sure prev_err doesn't get used when being
uninitialized.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Fixes: 9e622229bbf4 ("mmc: starfive: Add sdio/emmc driver support")
Link: https://lore.kernel.org/r/20230307024646.10216-3-william.qiu@starfivetech.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-starfive.c