mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
9af4acc096
commit
a66590de86
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user