diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-11-19 19:06:40 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-11-20 00:19:04 +0000 |
commit | 51ff1df443c02f03d93a68a989255aa90740acc6 (patch) | |
tree | 4687137a0cf2ea0aa723ba098f3f25246c20dec5 /epan | |
parent | 262a84c384353b2a88a6e81cdc499ab94a8316c2 (diff) |
file-elf: remove unuseful check (found by Clang 6).
error: comparison 'guint32' (aka 'unsigned int') <= 4294967295 is always true [-Werror,-Wtautological-constant-compare]
Change-Id: Id1f6a0a01dd897d263f7133a0d95aaecfba31e14
Reviewed-on: https://code.wireshark.org/review/24495
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/file-elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/file-elf.c b/epan/dissectors/file-elf.c index 509742b820..824c903eae 100644 --- a/epan/dissectors/file-elf.c +++ b/epan/dissectors/file-elf.c @@ -1514,7 +1514,7 @@ dissect_elf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) } else if (sh_type >= 0x70000000 && sh_type <= 0x7FFFFFFF) { proto_item_append_text(sh_entry_item, "Processor Specific (0x%08x)", sh_type); proto_tree_add_item(sh_entry_tree, hf_elf_sh_type_processor_specific, tvb, offset, 4, machine_encoding); - } else if (sh_type >= 0x80000000 && sh_type <= 0xFFFFFFFF) { + } else if (sh_type >= 0x80000000) { proto_item_append_text(sh_entry_item, "User Specific (0x%08x)", sh_type); proto_tree_add_item(sh_entry_tree, hf_elf_sh_type_user_specific, tvb, offset, 4, machine_encoding); }else { |