Change clearerr prototype; Automatically flush the device on close.
[bertos.git] / bertos / drv / sd.c
index 091a42bde073e3338ca2b15a65579a67c8b9e28f..c12d7592e6660332d57a430c1473e620057ae37a 100644 (file)
@@ -378,11 +378,10 @@ static int sd_error(KBlock *b)
        return sd->r1;
 }
 
-static int sd_clearerr(KBlock *b)
+static void sd_clearerr(KBlock *b)
 {
        Sd *sd = SD_CAST(b);
        sd->r1 = 0;
-       return 0;
 }
 
 static const KBlockVTable sd_unbuffered_vt =