Skip to content

Commit 3118c92

Browse files
MaureenHelmcarlescufi
authored andcommitted
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 <[email protected]>
1 parent e794da0 commit 3118c92

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

subsys/disk/disk_access_spi_sdhc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,6 @@ static int sdhc_spi_detect(struct sdhc_spi_data *data)
563563
break;
564564
}
565565
} while (sdhc_retry_ok(&retry));
566-
567-
if (err != 0) {
568-
/* Card never finished power-up */
569-
return -ETIMEDOUT;
570-
}
571566
}
572567

573568
if ((ocr & SDHC_CCS) != 0U) {

0 commit comments

Comments
 (0)