diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2019-04-05 18:48:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-08 10:05:40 +0300 |
commit | b93318a22f23cad8a3732451d83c604f289fcfc7 (patch) | |
tree | 9f0b121190cd261e86131bc6d2d625d6f02ff636 /drivers/spi | |
parent | 67dca5e580f1e93a66177389981541cac208c817 (diff) | |
download | linux-b93318a22f23cad8a3732451d83c604f289fcfc7.tar.xz |
spi: kill useless initializer in spi_register_controller()
The 'status' local variable is initialized but this value is never used,
thus kill that initializer.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index a83fcddf1dad..fd1372fe0505 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2267,7 +2267,7 @@ int spi_register_controller(struct spi_controller *ctlr) { struct device *dev = ctlr->dev.parent; struct boardinfo *bi; - int status = -ENODEV; + int status; int id, first_dynamic; if (!dev) |