aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-08-02 09:04:41 +0200
committerAnders Broman <a.broman58@gmail.com>2018-08-03 09:29:36 +0000
commit50dfbbd566998302a45ab29982c377b21e4a3217 (patch)
treec61b07a44b4424183e29cc2074f79df2487b5c90
parent51299192e214d025d5d759bce776104a0f2a6ffc (diff)
ospf: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ic40eb2ddeef30aa4f3f2d31dc7f91cec55e62508 Reviewed-on: https://code.wireshark.org/review/28926 Reviewed-by: Khalifa NDIAYE <khalifa.ndiaye@orange.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-ospf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ospf.c b/epan/dissectors/packet-ospf.c
index fc502bafec..0d81356f46 100644
--- a/epan/dissectors/packet-ospf.c
+++ b/epan/dissectors/packet-ospf.c
@@ -2357,7 +2357,6 @@ dissect_ospf_lsa_mpls(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree
}
/* flexi-grid_lsc, see RFC 8363 */
if (switch_cap == 152){
- bitmap_length = tvb_get_ntohs(tvb, stlv_offset + 42);
bitmap_offset = stlv_offset + 40 + 16;
no_eff_bits = tvb_get_ntohs(tvb, stlv_offset + 54) & 0x0FFF;
if(no_eff_bits % 32 == 0){