mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 15:54:39 +08:00
powerpc/powermac: Use for_each_property_of_node()
Replace open-coded for loop with for_each_property_of_node(). Reported-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
5bb99fd409
commit
2656d3ff4f
@ -685,7 +685,7 @@ static int pmf_add_functions(struct pmf_device *dev, void *driverdata)
|
||||
const int plen = strlen(PP_PREFIX);
|
||||
int count = 0;
|
||||
|
||||
for (pp = dev->node->properties; pp != 0; pp = pp->next) {
|
||||
for_each_property_of_node(dev->node, pp) {
|
||||
const char *name;
|
||||
if (strncmp(pp->name, PP_PREFIX, plen) != 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user