• Arnd Hannemann's avatar
    mmc: tmio_mmc: silence compiler warnings · eba46030
    Arnd Hannemann authored
    with "mmc: tmio: implement a bounce buffer for unaligned DMA"
    gcc generates the following warnings:
    
    drivers/mmc/host/tmio_mmc.c:654:6: warning: 'ret' may be used uninitialized in this function
    drivers/mmc/host/tmio_mmc.c:730:6: warning: 'ret' may be used uninitialized in this function
    
    This patch fixes these by setting ret to -EINVAL in the affected code paths.
    Signed-off-by: default avatarArnd Hannemann <arnd@arndnet.de>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    eba46030
tmio_mmc.c 31.6 KB