[U-Boot] [PATCH 3/8] dm: core: remove unnecessary return condition in driver lookup

Simon Glass sjg at chromium.org
Sun Nov 23 14:00:44 CET 2014


On 17 November 2014 at 02:14, Simon Glass <sjg at chromium.org> wrote:
> On 17 November 2014 08:19, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
>> The variable "drv" never becomes NULL because ll_entry_start()
>> always returns a valid pointer even if there are no entries.
>>
>> The case "n_ents == 0" is covered by the following "for" loop.
>>
>> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm.


More information about the U-Boot mailing list