[PATCH] lib: fwts_devicetree.h: minor code formatting cleanups
Colin King
colin.king at canonical.com
Wed Mar 15 10:04:59 UTC 2017
From: Colin Ian King <colin.king at canonical.com>
Replace gcc attribute with FWTS_UNUSED() macro, and reformat
function prototypes.
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/include/fwts_devicetree.h | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/src/lib/include/fwts_devicetree.h b/src/lib/include/fwts_devicetree.h
index 372bdda..662f6ec 100644
--- a/src/lib/include/fwts_devicetree.h
+++ b/src/lib/include/fwts_devicetree.h
@@ -44,22 +44,19 @@
int fwts_devicetree_read(fwts_framework *fwts);
#else /* !FWTS_HAS_DEVICETREE */
-static inline int fwts_devicetree_read(fwts_framework *fwts
- __attribute__((unused)))
+static inline int fwts_devicetree_read(fwts_framework *fwts)
{
+ FWTS_UNUSED(fwts);
+
return FWTS_OK;
}
#endif
bool check_status_property_okay(fwts_framework *fw,
- const char *my_path,
- const char *my_prop_string,
- const char *property);
+ const char *my_path, const char *my_prop_string, const char *property);
int check_property_printable(fwts_framework *fw,
- const char *name,
- const char *buf,
- size_t len);
+ const char *name, const char *buf, size_t len);
char *hidewhitespace(char *name);
--
2.10.2
More information about the fwts-devel
mailing list