Hi Luiz, On Thu, Jul 14, 2011, Luiz Augusto von Dentz wrote: > +static void remove_adapter(void *data) > +{ > + struct btd_adapter *adapter = data; > + > + adapter_remove(adapter); > + btd_adapter_unref(adapter); > +} The only places that call this function don't anymore use generic pointers so it can actually have struct btd_adapter instead of void. However, since this function is getting so simple I think it'd be more transparent if you just did these calls in the two places where it's necessary and don't have this extra helper function at all. Johan -- 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