mmc: core: correct invalid error checking