Commit 9b536d36 authored by Vladimir Oltean's avatar Vladimir Oltean Committed by Mark Brown

spi: spi-fsl-dspi: Remove unused initialization of 'ret' in dspi_probe

There is no code path for reaching 'return ret;' without it first being
assigned to an error code. Therefore the initialization with 0 is
pointless.
Signed-off-by: default avatarVladimir Oltean <olteanv@gmail.com>
Link: https://lore.kernel.org/r/20190818180115.31114-8-olteanv@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent abbd0ef1
...@@ -996,7 +996,7 @@ static int dspi_probe(struct platform_device *pdev) ...@@ -996,7 +996,7 @@ static int dspi_probe(struct platform_device *pdev)
const struct regmap_config *regmap_config; const struct regmap_config *regmap_config;
void __iomem *base; void __iomem *base;
struct fsl_dspi_platform_data *pdata; struct fsl_dspi_platform_data *pdata;
int ret = 0, cs_num, bus_num; int ret, cs_num, bus_num;
master = spi_alloc_master(&pdev->dev, sizeof(struct fsl_dspi)); master = spi_alloc_master(&pdev->dev, sizeof(struct fsl_dspi));
if (!master) if (!master)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment