[U-Boot] [PATCH v2 08/40] dm: blk: Update return value in blk_create_devicef()
Simon Glass
sjg at chromium.org
Sat Jul 29 17:34:59 UTC 2017
This returns 'ret' but the value is always zero. Update it to simply
return 0, for clarity.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
drivers/block/blk-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c
index fbe5f30fc0..8ab613d460 100644
--- a/drivers/block/blk-uclass.c
+++ b/drivers/block/blk-uclass.c
@@ -594,7 +594,7 @@ int blk_create_devicef(struct udevice *parent, const char *drv_name,
}
device_set_name_alloced(*devp);
- return ret;
+ return 0;
}
int blk_unbind_all(int if_type)
--
2.14.0.rc0.400.g1c36432dff-goog
More information about the U-Boot
mailing list