]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mvsdio: avoid compiler warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 5 Jun 2014 21:14:39 +0000 (23:14 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 12 Jun 2014 08:50:27 +0000 (10:50 +0200)
commitddd46c52f0f955838eeed396e161c9cc689b2a9d
treebc09795e0077d2755541244979561319a0c7ea55
parent0df7f018a8f64d1a901cd5b11857d441b1a394e7
mmc: mvsdio: avoid compiler warning

gcc correctly points out that hw_state can be used uninitially
in the mvsd_setup_data() function. This rearranges the function
to ensure it always contains a proper value.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Chris Ball <chris@printf.net>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: linux-mmc@vger.kernel.org
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mvsdio.c