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>
This commit is contained in:

committed by
Mark Brown

parent
67dca5e580
commit
b93318a22f
@@ -2267,7 +2267,7 @@ int spi_register_controller(struct spi_controller *ctlr)
|
|||||||
{
|
{
|
||||||
struct device *dev = ctlr->dev.parent;
|
struct device *dev = ctlr->dev.parent;
|
||||||
struct boardinfo *bi;
|
struct boardinfo *bi;
|
||||||
int status = -ENODEV;
|
int status;
|
||||||
int id, first_dynamic;
|
int id, first_dynamic;
|
||||||
|
|
||||||
if (!dev)
|
if (!dev)
|
||||||
|
Reference in New Issue
Block a user