Hi Alfonso, >>> if (cp->addr.type == BDADDR_BREDR) { >>> + if (cp->disconnect) >>> + conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, >>> + &cp->addr.bdaddr); >>> + else >>> + conn = NULL; /* Avoid disconnecting later on*/ >>> + >> >> I do not think this is a comment style that is valid in the network subsystem coding style and even if it is valid, it would be pretty unusual. > > Excuse my ignorance, but Where is the network subsystem coding style > documented? I haven't been able to find it. that is actually a good question and I am not sure I have a really good answer for that. It is essentially Documentation/CodingStyle plus a few extra special cases. Some of them I think are only documented in scripts/checkpatch.pl --strict. The --strict switch is also called --subjective so some of the rules really only apply to the net/ and drivers/net/. I think the term subjective gives it away pretty clearly ;) We just end up following the rules of the network subsystem here. So there is a difference between the coding style that we use in BlueZ userspace and the one that we use in the kernel. Not a major difference, but it comes to comment styles and multi-line indentations you see the difference. Regards Marcel -- 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