Commit 5fbd1a0b authored by Rui Miguel Silva's avatar Rui Miguel Silva Committed by Greg Kroah-Hartman

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: default avatarRui Miguel Silva <rui.silva@linaro.org>
Reported-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 141af4f0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment