From: Rui Miguel Silva Date: Tue, 15 Dec 2015 19:09:54 +0000 (+0000) Subject: greybus: spi: rename label to undo operation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5fbd1a0bcb02a2fda30849539dee0b91c4009c42;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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;