Commit 90298dc3 authored by Colin Ian King's avatar Colin Ian King Committed by Ulf Hansson
Browse files

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

Addresses-Coverity: ("Logically dead code")
Signed-off-by: default avatarColin Ian King <>
Acked-by: default avatarAdrian Hunter <>
Signed-off-by: default avatarUlf Hansson <>
parent ca4570a4
......@@ -2040,8 +2040,6 @@ static int sdhci_pci_probe(struct pci_dev *pdev,
slots = PCI_SLOT_INFO_SLOTS(slots) + 1;
dev_dbg(&pdev->dev, "found %d slot(s)\n", slots);
if (slots == 0)
return -ENODEV;
BUG_ON(slots > MAX_SLOTS);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment