The 'status' local variable is initialized but this value is never used, thus kill that initializer. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@xxxxxxxxxxxxxxxxxx> --- The patch is against the 'for-next' branch of Mark Brown's 'spi.git' repo. Changes in version 2: - rebased/renamed the patch. drivers/spi/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: spi/drivers/spi/spi.c =================================================================== --- spi.orig/drivers/spi/spi.c +++ spi/drivers/spi/spi.c @@ -2267,7 +2267,7 @@ int spi_register_controller(struct spi_c { struct device *dev = ctlr->dev.parent; struct boardinfo *bi; - int status = -ENODEV; + int status; int id, first_dynamic; if (!dev)