diff options
author | Rui Miguel Silva <rui.silva@linaro.org> | 2015-12-15 19:09:54 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-12-15 14:32:12 -0800 |
commit | 5fbd1a0bcb02a2fda30849539dee0b91c4009c42 (patch) | |
tree | 6447780f0d9ea6f353c0dfb0cdf59e4944a313ef /drivers | |
parent | 141af4f05435ac217b9e1fc8260b42e460997fb6 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/greybus/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index 15886a27b347..41aa0ec1ced7 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -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; |