greybus: connection: rename an error label
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 May 2016 15:26:30 +0000 (17:26 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 19:19:29 +0000 (12:19 -0700)
Rename an error label to make it more descriptive.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c

index 785b60b..9c7133e 100644 (file)
@@ -566,11 +566,11 @@ static int _gb_connection_enable(struct gb_connection *connection, bool rx)
 
        ret = gb_connection_control_connected(connection);
        if (ret)
 
        ret = gb_connection_control_connected(connection);
        if (ret)
-               goto err_svc_destroy;
+               goto err_flush_operations;
 
        return 0;
 
 
        return 0;
 
-err_svc_destroy:
+err_flush_operations:
        spin_lock_irq(&connection->lock);
        connection->state = GB_CONNECTION_STATE_DISABLED;
        gb_connection_cancel_operations(connection, -ESHUTDOWN);
        spin_lock_irq(&connection->lock);
        connection->state = GB_CONNECTION_STATE_DISABLED;
        gb_connection_cancel_operations(connection, -ESHUTDOWN);