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>
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;
return ret;
-out_err:
+out_put_master:
spi_master_put(master);
return ret;