summaryrefslogtreecommitdiff
path: root/fs/openpromfs
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-11-16 15:06:53 -0600
committerDavid S. Miller <davem@davemloft.net>2018-11-18 13:35:19 -0800
commitf3180e1828e63eae22269ec81ab627f647d43f39 (patch)
tree9a05d0be096757c7b65946d02330e9f15a6d2d7e /fs/openpromfs
parent105e996a8322079fa1aa2f40001eed6bbdbe10f9 (diff)
fs/openpromfs: Use of_node_name_eq for node name comparisons
Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/openpromfs')
-rw-r--r--fs/openpromfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
index 3d8e9bcfe239..1b2d0d2fe2ee 100644
--- a/fs/openpromfs/inode.c
+++ b/fs/openpromfs/inode.c
@@ -246,7 +246,7 @@ found:
set_nlink(inode, 2);
break;
case op_inode_prop:
- if (!strcmp(dp->name, "options") && (len == 17) &&
+ if (of_node_name_eq(dp, "options") && (len == 17) &&
!strncmp (name, "security-password", 17))
inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
else