aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_basic.c
diff options
context:
space:
mode:
authorVivien Didelot <[email protected]>2017-11-06 21:11:50 +0000
committerDavid S. Miller <[email protected]>2017-11-09 00:26:49 +0000
commitc52866655558e5fc87ceae8aac528a7e410c8a77 (patch)
treead5e495febf1bc80007289a8becadfd98ce81436 /net/sched/cls_basic.c
parentnet: dsa: add find port by node helper (diff)
downloadkernel-c52866655558e5fc87ceae8aac528a7e410c8a77.tar.gz
kernel-c52866655558e5fc87ceae8aac528a7e410c8a77.zip
net: dsa: use of_for_each_phandle
The OF code provides a of_for_each_phandle() helper to iterate over phandles. Use it instead of arbitrary iterating ourselves over the list of phandles hanging to the "link" property of the port's device node. The of_phandle_iterator_next() helper calls of_node_put() itself on it.node. Thus We must only do it ourselves if we break the loop. Signed-off-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions