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:
parent
e794da070a
commit
3118c926c6
1 changed files with 0 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue