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)
commit76df275ce53c0435ff4df2e8f1015522d39efd38
treefcaecdb2b4e614269c8d769622c781fd7fead6ad
parent65d87d6cfc204d6a8fa9e5bbe01a974ef9c3074e
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