mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
dm: core: Switch uclass_foreach_dev_probe to use simple iterator
The return value is not used for anythig, and in a later patch the behavior of the _err iterator will change in an incompatible way. Signed-off-by: Michal Suchanek <msuchanek@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Update pvblock_probe() to avoid using internal var: Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7b2aa218c7
commit
801f71194c
2 changed files with 3 additions and 6 deletions
|
@ -491,7 +491,7 @@ int uclass_id_count(enum uclass_id id);
|
|||
* are no more devices.
|
||||
*/
|
||||
#define uclass_foreach_dev_probe(id, dev) \
|
||||
for (int _ret = uclass_first_device_err(id, &dev); !_ret && dev; \
|
||||
_ret = uclass_next_device_err(&dev))
|
||||
for (uclass_first_device(id, &dev); dev; \
|
||||
uclass_next_device(&dev))
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue