summaryrefslogtreecommitdiff
path: root/drivers/xen/pvblock.c
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2022-10-12 21:58:05 +0200
committerSimon Glass <sjg@chromium.org>2022-10-17 21:17:12 -0600
commit801f71194c54c75e90d723b9be3434b6354fce71 (patch)
tree829e09f7b969caf9283b5550c31592f3b82462cf /drivers/xen/pvblock.c
parent7b2aa218c7f642f1b60ea99cbaa62ed1c45f4d21 (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 <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>
Diffstat (limited to 'drivers/xen/pvblock.c')
-rw-r--r--drivers/xen/pvblock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c
index 970182cd904..95e298d7ddc 100644
--- a/drivers/xen/pvblock.c
+++ b/drivers/xen/pvblock.c
@@ -852,10 +852,7 @@ static int pvblock_probe(struct udevice *udev)
ret = uclass_get(UCLASS_BLK, &uc);
if (ret)
return ret;
- uclass_foreach_dev_probe(UCLASS_BLK, udev) {
- if (_ret)
- return _ret;
- };
+ uclass_foreach_dev_probe(UCLASS_BLK, udev);
return 0;
}