fs: jffs2: Remove always true test

Testing an unsigned variable to be >= 0 will always be true so remove
this redundant test.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
This commit is contained in:
Andrew Goodbody 2025-10-02 10:29:14 +01:00 committed by Tom Rini
parent 87b7eaf324
commit 48f21e66e3

View File

@ -994,14 +994,12 @@ jffs2_1pass_list_inodes(struct b_lists * pL, u32 pino)
}
}
if (i_version >= 0) {
if (jDir->type == DT_LNK)
jNode = get_node_mem(i_offset, NULL);
else
jNode = get_fl_mem(i_offset,
sizeof(*jNode),
NULL);
}
if (jDir->type == DT_LNK)
jNode = get_node_mem(i_offset, NULL);
else
jNode = get_fl_mem(i_offset,
sizeof(*jNode),
NULL);
dump_inode(pL, jDir, jNode);
put_fl_mem(jNode, NULL);