spi: rcar: Fix uninitialized variable warning
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 27 Nov 2013 00:41:44 +0000 (01:41 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 27 Nov 2013 16:31:31 +0000 (16:31 +0000)
commit8e1c8096faae6b8ac788a1bbeeea126044cb485a
tree2de403de99378c18ae5ddeb36100c4d3118c70c0
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
spi: rcar: Fix uninitialized variable warning

The transfer data length variable is set based on the desired access
size, without a default case. This results in a compiler warning, even
though the access size is always set to a supported value. Create a
default case to silence the warning.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c