spi/fsl: deal with a compile warning
authorZhao Qiang <B45475@freescale.com>
Thu, 26 Jun 2014 03:26:43 +0000 (11:26 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 2 Jul 2014 19:50:17 +0000 (20:50 +0100)
commitef4bbdec95cfa64d188e05aea64cbb16a21d7d97
tree6b704e26f871c3e8e7a83583aa2b306b3f9e159a
parent7171511eaec5bf23fb06078f59784a3a0626b38f
spi/fsl: deal with a compile warning

ret is unused when CONFIG_FSL_SOC defined,
so return ret instead of -ENOMEM when the
kzalloc fails to avoid it.

Signed-off-by: Zhao Qiang <B45475@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-fsl-lib.c