projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm: core: remove unnecessary return condition in uclass lookup
[oweals/u-boot.git]
/
drivers
/
core
/
uclass.c
diff --git
a/drivers/core/uclass.c
b/drivers/core/uclass.c
index 61ca17e564a25dff143da7c26b8d886dab90de04..901b06ed2baaf5f4b0cbdb71d3ca40170de33991 100644
(file)
--- a/
drivers/core/uclass.c
+++ b/
drivers/core/uclass.c
@@
-60,10
+60,6
@@
static int uclass_add(enum uclass_id id, struct uclass **ucp)
id);
return -ENOENT;
}
- if (uc_drv->ops) {
- dm_warn("No ops for uclass id %d\n", id);
- return -EINVAL;
- }
uc = calloc(1, sizeof(*uc));
if (!uc)
return -ENOMEM;