LAT: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sat, 16 Jan 2016 11:07:17 +0000 (12:07 +0100)
committerMichael Mann <mmann78@netscape.net>
Sat, 16 Jan 2016 13:05:56 +0000 (13:05 +0000)
Change-Id: I3e2fad7f0307e599802c37040b34c899efb0e603
Reviewed-on: https://code.wireshark.org/review/13328
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
epan/dissectors/packet-lat.c

index 7522d7c4773a228433ef08b31e6c7303cd2ad482..d77accf213ec4c310f77bb67473242b9b91e5eb8 100644 (file)
@@ -206,7 +206,6 @@ static void
 dissect_lat_start(tvbuff_t *tvb, int offset, proto_tree *tree)
 {
        dissect_lat_header(tvb, offset, tree);
-       offset += 1 + 2 + 2 + 1 + 1;
        /* XXX - dissect the rest of it */
 }
 
@@ -214,7 +213,6 @@ static void
 dissect_lat_stop(tvbuff_t *tvb, int offset, proto_tree *tree)
 {
        dissect_lat_header(tvb, offset, tree);
-       offset += 1 + 2 + 2 + 1 + 1;
        /* XXX - dissect the rest of it */
 }