Hi Hemant, On Mon, Apr 09, 2012, Hemant Gupta wrote: > + if (len != sizeof(*type)) { > + error("start_discovery_complete event size mismatch " > + "(%zu != %zu)", len, sizeof(*type)); The above line should be indented only with tabs. You're using tabs + spaces. > + if (index > max_index) { > + error("Unexpected index %u in start_discovery_complete", > + index); > + return; > + } > + > + if (!status) > + return; > + > + DBG("hci%u type%d status%d", index, *type, status); Could you move this DBG statement above the index < max_index and add spaces after "type" and "status" (hci%u is the only exception since that's how adapters are named). Also, the format specifiers should be %u since both type and status are unsigned. > + adapter = manager_find_adapter_by_id(index); > + > + if (adapter) Remove the empty line between the adapter assignment and the if-statement (this applies to any function call and a test for its result; there should be no empty line between them). 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