aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_const.c
diff options
context:
space:
mode:
authorFrans Hendriks <fhendriks@eltan.com>2021-02-01 11:44:37 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-02-05 09:42:19 +0000
commita9caa50e8ac08338caf29c8452d624e316e07581 (patch)
tree444af3e557fa8444cf36d4aed3cf1dd1d16551c7 /src/device/device_const.c
parent3d6d1075b2ba17a357143f518715a911e09b38ec (diff)
device: correct code style
Revise the following aspects to follow coreboot's coding style: - Drop braces for single-statement condition and loop bodies. - Use `__func__` to print the current function's name. - Reflow pointer dereferences to fit in a single line. - Adjust the `*` position in pointer variable declarations. - Drop unnecessary `else` statements. BUG = N/A TEST = Build Compulab Intense-PC with secure oprom enabled Change-Id: I780251d946d5bea97658476d61d25555ec768dfc Signed-off-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49963 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/device/device_const.c')
-rw-r--r--src/device/device_const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_const.c b/src/device/device_const.c
index 5288a743b6..2ce76c61e5 100644
--- a/src/device/device_const.c
+++ b/src/device/device_const.c
@@ -9,7 +9,7 @@
#include <device/resource.h>
/** Linked list of ALL devices */
-DEVTREE_CONST struct device * DEVTREE_CONST all_devices = &dev_root;
+DEVTREE_CONST struct device *DEVTREE_CONST all_devices = &dev_root;
/**
* Given a PCI bus and a devfn number, find the device structure.