disk: sdhc: Remove logically dead code from spi sdhc driver

We already returned out of the function if err is nonzero, therefore it
is impossible to reach this return statement.

Coverity-CID: 205612

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2019-11-14 10:19:08 -06:00 committed by Carles Cufí
commit 3118c926c6

View file

@ -563,11 +563,6 @@ static int sdhc_spi_detect(struct sdhc_spi_data *data)
break;
}
} while (sdhc_retry_ok(&retry));
if (err != 0) {
/* Card never finished power-up */
return -ETIMEDOUT;
}
}
if ((ocr & SDHC_CCS) != 0U) {