mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
David S. Miller
parent
105e996a83
commit
f3180e1828
@@ -246,7 +246,7 @@ found:
|
|||||||
set_nlink(inode, 2);
|
set_nlink(inode, 2);
|
||||||
break;
|
break;
|
||||||
case op_inode_prop:
|
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))
|
!strncmp (name, "security-password", 17))
|
||||||
inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
|
inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user