mirror of
https://xff.cz/git/u-boot/
synced 2025-11-02 19:36:22 +01:00
yaffs2: iterator variable cannot be NULL
The iterator of list_for_each() is never NULL. Identified with coccinelle. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
committed by
Tom Rini
parent
c9bf43dd9d
commit
428e60e079
@@ -1872,8 +1872,8 @@ static int yaffs_new_obj_id(struct yaffs_dev *dev)
|
||||
n += YAFFS_NOBJECT_BUCKETS;
|
||||
list_for_each(i, &dev->obj_bucket[bucket].list) {
|
||||
/* If there is already one in the list */
|
||||
if (i && list_entry(i, struct yaffs_obj,
|
||||
hash_link)->obj_id == n) {
|
||||
if (list_entry(i, struct yaffs_obj,
|
||||
hash_link)->obj_id == n) {
|
||||
found = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user