]> git.sur5r.net Git - u-boot/commit
dm: core: remove unnecessary return condition in uclass lookup
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 17 Nov 2014 08:19:41 +0000 (17:19 +0900)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Nov 2014 09:16:49 +0000 (10:16 +0100)
commit17b28edb37a33d0c89089faf36e4edd7084f65fa
tree14eb667cd340050195cb5496f61a11b0194b956f
parentf724e0bba2967397545bd48992bba66452d6759d
dm: core: remove unnecessary return condition in uclass lookup

These conditions never happen.
 - There is no real uclass with UCLASS_INVALID id.
 - uclass never becomes NULL because ll_entry_start() always returns
   a valid pointer.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c