diff options
| author | Zhao Qiang <[email protected]> | 2014-06-26 03:26:43 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2014-07-02 19:50:17 +0000 |
| commit | ef4bbdec95cfa64d188e05aea64cbb16a21d7d97 (patch) | |
| tree | 6b704e26f871c3e8e7a83583aa2b306b3f9e159a /drivers/spi/spi-fsl-lib.c | |
| parent | Linux 3.16-rc1 (diff) | |
| download | kernel-ef4bbdec95cfa64d188e05aea64cbb16a21d7d97.tar.gz kernel-ef4bbdec95cfa64d188e05aea64cbb16a21d7d97.zip | |
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-fsl-lib.c')
| -rw-r--r-- | drivers/spi/spi-fsl-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-lib.c b/drivers/spi/spi-fsl-lib.c index 95212ea96c8d..e0b773fc29cb 100644 --- a/drivers/spi/spi-fsl-lib.c +++ b/drivers/spi/spi-fsl-lib.c @@ -196,7 +196,7 @@ int of_mpc8xxx_spi_probe(struct platform_device *ofdev) pinfo = devm_kzalloc(&ofdev->dev, sizeof(*pinfo), GFP_KERNEL); if (!pinfo) - return -ENOMEM; + return ret; pdata = &pinfo->pdata; dev->platform_data = pdata; |
