Browse Source

spi: remove redundant variable assignment

The status variable is guaranteed to be 0 at that location anyway.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Guennadi Liakhovetski 13 years ago
parent
commit
a66590de86
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/spi/spi.c

+ 0 - 2
drivers/spi/spi.c

@@ -931,8 +931,6 @@ int spi_register_master(struct spi_master *master)
 		spi_match_master_to_boardinfo(master, &bi->board_info);
 	mutex_unlock(&board_lock);
 
-	status = 0;
-
 	/* Register devices from the device tree */
 	of_register_spi_devices(master);
 done: