Skip to content

Commit

Permalink
spi: remove redundant variable assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guennadi Liakhovetski authored and Grant Likely committed Mar 15, 2012
1 parent 9af4acc commit a66590d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a66590d

Please sign in to comment.