
10 Jan
2022
10 Jan
'22
10:06 a.m.
On Monday 10 January 2022 08:43:17 Stefan Roese wrote:
- /* If mSATA card is not present, disable SATA DT node */
- if (!mode_sata) {
fdt_for_each_node_by_compatible (node, blob, -1,
"marvell,armada-380-ahci") {
Why are adding the space before the "(" here? This does not seem the common and preferred coding style AFAICT.
Hello Stefan! Just to note that I'm adding this space too when writing for-loops. E.g.:
for (i = 0; i < 10; i++) { ... }
or:
fdt_for_each_node_by_compatible (node, blob, -1, compatible) { ... }
if (!fdtdec_get_is_enabled(blob, node))
continue;
if (fdt_status_disabled(blob, node) < 0)
printf("Cannot disable SATA DT node!\n");
else
debug("Disabled SATA DT node\n");
break;
}
return;
- }