mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 01:49:20 -04:00
greybus: spi: rename label to undo operation
Rename error path label to a more significant name related to the free operation done. Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org> Reported-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
141af4f054
commit
5fbd1a0bcb
@@ -346,7 +346,7 @@ static int gb_spi_connection_init(struct gb_connection *connection)
|
||||
|
||||
ret = gb_spi_init(spi);
|
||||
if (ret)
|
||||
goto out_err;
|
||||
goto out_put_master;
|
||||
|
||||
master->bus_num = -1; /* Allow spi-core to allocate it dynamically */
|
||||
master->num_chipselect = spi->num_chipselect;
|
||||
@@ -370,7 +370,7 @@ static int gb_spi_connection_init(struct gb_connection *connection)
|
||||
|
||||
return ret;
|
||||
|
||||
out_err:
|
||||
out_put_master:
|
||||
spi_master_put(master);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user