|
@@ -48,8 +48,8 @@ static int gb_operation_get_active(struct gb_operation *operation)
|
|
|
spin_lock_irqsave(&connection->lock, flags);
|
|
|
|
|
|
if (connection->state != GB_CONNECTION_STATE_ENABLED &&
|
|
|
- connection->state != GB_CONNECTION_STATE_ENABLED_TX &&
|
|
|
- !gb_operation_is_incoming(operation)) {
|
|
|
+ (connection->state != GB_CONNECTION_STATE_ENABLED_TX ||
|
|
|
+ gb_operation_is_incoming(operation))) {
|
|
|
spin_unlock_irqrestore(&connection->lock, flags);
|
|
|
return -ENOTCONN;
|
|
|
}
|