Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Wed, 3 Jul 2013 16:43:02 +0000 (16:43 -0000)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Wed, 3 Jul 2013 16:43:02 +0000 (16:43 -0000)
svn path=/trunk/; revision=50348

epan/dissectors/packet-brdwlk.c

index 12fc4971bb098ef560dfd4ba103d18394980a2d2..9bc0e5162fc1384d5ad40598e1bed0bf3ed59ea0 100644 (file)
@@ -202,7 +202,7 @@ dissect_brdwlk_err(proto_tree *parent_tree, tvbuff_t *tvb, int offset)
     if (flags & 0x80) {
         proto_item_append_text(item, "  Ctrl Char Inside Frame");
     }
-    flags &= (~( 0x80 ));
+    /*flags &= (~( 0x80 ));*/
 }
 
 /* Code to actually dissect the packets */
@@ -319,13 +319,13 @@ dissect_brdwlk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                     p_add_proto_data(pinfo->fd, proto_brdwlk, 0, &packet_count);
                 }
             }
-
-            if (tree) {
-                hidden_item = proto_tree_add_boolean(brdwlk_tree, hf_brdwlk_drop,
+        }
+        if (tree) {
+            hidden_item = proto_tree_add_boolean(brdwlk_tree, hf_brdwlk_drop,
                                                      tvb, offset, 0, dropped_packets);
-                PROTO_ITEM_SET_HIDDEN(hidden_item);
-            }
+            PROTO_ITEM_SET_HIDDEN(hidden_item);
         }
+
         packet_count = pkt_cnt;
 
         error=tvb_get_guint8(tvb, offset+2);