liblitesdcard/sdcard: return error code outside '#ifdef SDCARD_DEBUG'
authorGabriel Somlo <gsomlo@gmail.com>
Sat, 4 Jul 2020 19:24:05 +0000 (15:24 -0400)
committerGabriel Somlo <gsomlo@gmail.com>
Sat, 4 Jul 2020 19:24:05 +0000 (15:24 -0400)
litex/soc/software/liblitesdcard/sdcard.c

index 222e78d117f041c0a02588056a4c0878c3b23c72..ac066eb1c572fd9bd3a8bed337f20a1655c8fdea 100644 (file)
@@ -55,8 +55,8 @@ int sdcard_wait_cmd_done(void) {
                        else if (cmdevt & 0x8) {
 #ifdef SDCARD_DEBUG
                                printf("cmdevt: SD_CRCERROR\n");
-                               return SD_CRCERROR;
 #endif
+                               return SD_CRCERROR;
                        }
                        return SD_OK;
                }