mmc: sdhci-pci: remove redundant check of slots == 0
authorColin Ian King <colin.king@canonical.com>
Fri, 31 May 2019 11:32:23 +0000 (12:32 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Jun 2019 15:11:09 +0000 (17:11 +0200)
commit90298dc353bc1327d59da30d4b1e4d50d5513033
tree29cb8f5683482fd2c44b00c64ba4c437749db0ef
parentca4570a4c2d3be309ff4b8976efa7c8291ca6b6d
mmc: sdhci-pci: remove redundant check of slots == 0

The calculation of slots results in a value in the range 1..8
and so slots can never be zero.  The check for slots == 0 is
always going to be false, hence it is redundant and can be
removed.

Addresses-Coverity: ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-core.c