diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-09-03 20:15:25 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-09-03 20:23:43 +0200 |
commit | 37a9a22eee01eae170049c95d628c33f75ab8efa (patch) | |
tree | 4861d3d4818031ac0c1727c891c3151d38ea457e /bin | |
parent | d72643ce152b97c359095373df30c164b272d7a1 (diff) |
coverity: fix: remove dead code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/gensquashfs/src/fstree_from_file.c | 2 | ||||
-rw-r--r-- | bin/tar2sqfs/src/process_tarball.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/bin/gensquashfs/src/fstree_from_file.c b/bin/gensquashfs/src/fstree_from_file.c index 297db31..a5c6e53 100644 --- a/bin/gensquashfs/src/fstree_from_file.c +++ b/bin/gensquashfs/src/fstree_from_file.c @@ -191,7 +191,7 @@ fail_alloc: return -1; fail_root: fprintf(stderr, "%s: " PRI_SZ ": cannot use / as argument for %s.\n", - filename, line_num, is_glob ? "glob" : cb->keyword); + filename, line_num, cb->keyword); return -1; fail_no_extra: fprintf(stderr, "%s: " PRI_SZ ": missing argument for %s.\n", diff --git a/bin/tar2sqfs/src/process_tarball.c b/bin/tar2sqfs/src/process_tarball.c index 3b9365d..e0326ee 100644 --- a/bin/tar2sqfs/src/process_tarball.c +++ b/bin/tar2sqfs/src/process_tarball.c @@ -224,8 +224,6 @@ int process_tarball(sqfs_dir_iterator_t *it, sqfs_writer_t *sqfs) if (is_root) { ret = set_root_attribs(sqfs, it, ent); - } else if (skip) { - ret = dont_skip ? -1 : 0; } else { ret = create_node_and_repack_data(sqfs, it, ent, link); } |