mmc: sdhci-pci-o2micro: Add missing checks in sdhci_pci_o2_probe
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 26 Feb 2021 08:41:46 +0000 (16:41 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:42:00 +0000 (11:42 +0200)
commitd599005afde8dd86b819d353fd77568c35295337
tree1ac54879b939ee133801e31fbd44e5ed15450310
parentf46b54cc72bd71d1b2e620bfa00a95837078261f
mmc: sdhci-pci-o2micro: Add missing checks in sdhci_pci_o2_probe

It's odd to adopt different error handling on failure of
pci_read_config_dword(). Check the return value and terminate
execution flow on failure of all pci_read_config_dword() calls
in this function.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20210226084146.29095-1-dinghao.liu@zju.edu.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-o2micro.c