From: Simon Glass Date: Sat, 29 Jul 2017 17:34:59 +0000 (-0600) Subject: dm: blk: Update return value in blk_create_devicef() X-Git-Tag: v2017.09-rc3~69^2~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7074b2a3649acc9fd6e5db8d24c2c9c6fc35d5df;p=u-boot dm: blk: Update return value in blk_create_devicef() This returns 'ret' but the value is always zero. Update it to simply return 0, for clarity. Signed-off-by: Simon Glass --- diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 3adb92b58e..3aec569d12 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -596,7 +596,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)