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>
}
}
- 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);