]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: blk: Update return value in blk_create_devicef()
authorSimon Glass <sjg@chromium.org>
Sat, 29 Jul 2017 17:34:59 +0000 (11:34 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Aug 2017 07:44:16 +0000 (16:44 +0900)
This returns 'ret' but the value is always zero. Update it to simply
return 0, for clarity.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/blk-uclass.c

index 3adb92b58e8b5d072a8539c4d09bae2a3f0fedac..3aec569d124be830afa3100f1eff6e8bb2d0e280 100644 (file)
@@ -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)