mmc: tmio_mmc: silence compiler warnings
authorArnd Hannemann <arnd@arndnet.de>
Sun, 19 Dec 2010 21:16:07 +0000 (21:16 +0000)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:29 +0000 (23:52 -0500)
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: Arnd Hannemann <arnd@arndnet.de>
Signed-off-by: Chris Ball <cjb@laptop.org>

No differences found