projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c16ad67
)
dm: blk: Update return value in blk_create_devicef()
author
Simon Glass
<sjg@chromium.org>
Sat, 29 Jul 2017 17:34:59 +0000
(11:34 -0600)
committer
Jaehoon 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
patch
|
blob
|
history
diff --git
a/drivers/block/blk-uclass.c
b/drivers/block/blk-uclass.c
index 3adb92b58e8b5d072a8539c4d09bae2a3f0fedac..3aec569d124be830afa3100f1eff6e8bb2d0e280 100644
(file)
--- 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)