mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
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>
This commit is contained in:
parent
852e9ecbe1
commit
120775eb1c
2 changed files with 3 additions and 3 deletions
2
checks.c
2
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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue