summaryrefslogtreecommitdiff
path: root/checks.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-02-13 15:57:54 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-02-13 15:57:54 +1100
commit120775eb1cf39f8dcecd695c3ff1cfef8aeb669d (patch)
tree6b6102ee68ad131a407852a8cfb665fadae35057 /checks.c
parent852e9ecbe1976927057402f8a8f71ee8e8a49098 (diff)
downloaddevice-tree-compiler-120775eb1cf39f8dcecd695c3ff1cfef8aeb669d.tar.gz
dtc: Use streq() in preference to strcmp()
dtc defines a streq() (string equality) macro to avoid the easy confusion of the sense of strcmp() comparison for equality. A few places where we don't use it have slipped in, so remove them. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'checks.c')
-rw-r--r--checks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checks.c b/checks.c
index 67237ff..cce0cca 100644
--- a/checks.c
+++ b/checks.c
@@ -325,7 +325,7 @@ static void check_property_name_chars_strict(struct check *c,
continue;
/* Certain names are whitelisted */
- if (strcmp(name, "device_type") == 0)
+ if (streq(name, "device_type"))
continue;
/*