mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-19 16:31:27 +01:00
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:
parent
87b7eaf324
commit
48f21e66e3
@ -994,14 +994,12 @@ jffs2_1pass_list_inodes(struct b_lists * pL, u32 pino)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i_version >= 0) {
|
|
||||||
if (jDir->type == DT_LNK)
|
if (jDir->type == DT_LNK)
|
||||||
jNode = get_node_mem(i_offset, NULL);
|
jNode = get_node_mem(i_offset, NULL);
|
||||||
else
|
else
|
||||||
jNode = get_fl_mem(i_offset,
|
jNode = get_fl_mem(i_offset,
|
||||||
sizeof(*jNode),
|
sizeof(*jNode),
|
||||||
NULL);
|
NULL);
|
||||||
}
|
|
||||||
|
|
||||||
dump_inode(pL, jDir, jNode);
|
dump_inode(pL, jDir, jNode);
|
||||||
put_fl_mem(jNode, NULL);
|
put_fl_mem(jNode, NULL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user