diff options
| author | Michal Suchanek <[email protected]> | 2022-10-12 21:58:05 +0200 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2022-10-17 21:17:12 -0600 |
| commit | 801f71194c54c75e90d723b9be3434b6354fce71 (patch) | |
| tree | 829e09f7b969caf9283b5550c31592f3b82462cf /include | |
| parent | 7b2aa218c7f642f1b60ea99cbaa62ed1c45f4d21 (diff) | |
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Update pvblock_probe() to avoid using internal var:
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/dm/uclass.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dm/uclass.h b/include/dm/uclass.h index f6c0110b061..990e9c02d1e 100644 --- a/include/dm/uclass.h +++ b/include/dm/uclass.h @@ -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 |
