OSDN Git Service

staging: octeon: Use 'for_each_child_of_node'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 20 Apr 2021 12:05:10 +0000 (14:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Apr 2021 08:43:25 +0000 (10:43 +0200)
commitc295d3007ff63064181befa734d9705dfc10b396
treec4a0f975d12e6446a7537f32ceba7686d2dcc303
parentbd36d5e2d5c48ee2cb12f98ad0b334d05917b850
staging: octeon: Use 'for_each_child_of_node'

Use 'for_each_child_of_node' instead of hand writing it.
This saves a few line of code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/eaffe388e6c51e97caf3e8fa474de74428575455.1618920182.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet.c