]> git.baikalelectronics.ru Git - uboot.git/commit
yaffs2: rework yaffs_new_obj_id
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 9 Nov 2017 00:26:43 +0000 (01:26 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 21 Nov 2017 01:18:38 +0000 (20:18 -0500)
commite85e13ee7aa7317f505284ff691cce6da652c710
treefcaecdb2b4e614269c8d769622c781fd7fead6ad
parent5ebb4fae81fa435f09d49a54656420dc0c4448a7
yaffs2: rework yaffs_new_obj_id

The iterator variable of list_for_each is never NULL.
if (1 || A) is always true.
Use break if entry found.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
fs/yaffs2/yaffs_guts.c