OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abbd0ef
)
spi: spi-fsl-dspi: Remove unused initialization of 'ret' in dspi_probe
author
Vladimir Oltean
<olteanv@gmail.com>
Sun, 18 Aug 2019 18:01:08 +0000
(21:01 +0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 20 Aug 2019 13:05:36 +0000
(14:05 +0100)
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: Vladimir Oltean <olteanv@gmail.com>
Link:
https://lore.kernel.org/r/20190818180115.31114-8-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-fsl-dspi.c
b/drivers/spi/spi-fsl-dspi.c
index
c07525a
..
c5d99f4
100644
(file)
--- a/
drivers/spi/spi-fsl-dspi.c
+++ b/
drivers/spi/spi-fsl-dspi.c
@@
-996,7
+996,7
@@
static int dspi_probe(struct platform_device *pdev)
const struct regmap_config *regmap_config;
void __iomem *base;
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));
if (!master)