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 'spi-next' branch of Mark Brown's 'spi.git' repo. 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 @@ -1567,7 +1567,7 @@ int spi_register_master(struct spi_maste static atomic_t dyn_bus_id = ATOMIC_INIT((1<<15) - 1); struct device *dev = master->dev.parent; struct boardinfo *bi; - int status = -ENODEV; + int status; int dynamic = 0; if (!dev)