drivers: base: omit redundant interations
authorGimcuan Hui <gimcuan@gmail.com>
Sat, 11 Nov 2017 05:52:54 +0000 (05:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Dec 2017 15:47:27 +0000 (16:47 +0100)
commit93ead7c9483c6d7ae0f67ae6d0a5d3966d84bec8
treeaa5df925bfd023273f4d5de96dfbb20cd405239f
parent73cf7e111ed69d8e1b59a3ae41b14bc77215e9ee
drivers: base: omit redundant interations

When error happens, these interators return the error, no interation should
be continued, so make the change for getting out of while immediately.

Signed-off-by: Gimcuan Hui <gimcuan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/bus.c
drivers/base/core.c
drivers/base/driver.c