Browse Source

greybus: connection: rename an error label

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>
Johan Hovold 9 years ago
parent
commit
e2efe1bbc4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/staging/greybus/connection.c

+ 2 - 2
drivers/staging/greybus/connection.c

@@ -566,11 +566,11 @@ static int _gb_connection_enable(struct gb_connection *connection, bool rx)
 
 	ret = gb_connection_control_connected(connection);
 	if (ret)
-		goto err_svc_destroy;
+		goto err_flush_operations;
 
 	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);