Hi Mikel, On Wed, Apr 11, 2012 at 9:57 AM, Mikel Astiz <mikel.astiz.oss@xxxxxxxxx> wrote: > +static struct media_transport *get_unique_transport( > + struct media_endpoint *endpoint) > +{ > + if (endpoint->transports == NULL) > + return NULL; > + > + if (endpoint->transports->next != NULL) > + return NULL; > + > + return endpoint->transports->data; > } This doesn't look necessary in case of A2DP the endpoint cannot be reused because of in_use flag, but overall the rest looks good. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html