Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Apr 2011 14:41:49 +0000 (14:41 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Apr 2011 14:41:49 +0000 (14:41 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36870 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-homeplug.c

index 0d5bed04678e0e4ec79e89dbd851a46255635a12..b4c532c72a89b7ed757cb20949f14181393c6388 100644 (file)
@@ -585,7 +585,6 @@ static void dissect_homeplug_cer(ptvcursor_t * cursor)
 /* Dissection of Vendor Specific MME */
 static void dissect_homeplug_vs(ptvcursor_t * cursor)
 {
-  int mid;
   proto_item * it = NULL;
 
   if (!ptvcursor_tree(cursor))
@@ -598,8 +597,6 @@ static void dissect_homeplug_vs(ptvcursor_t * cursor)
     ptvcursor_add(cursor, hf_homeplug_vs_oui, 3, FALSE);
 
     it = ptvcursor_add_no_advance(cursor, hf_homeplug_vs_mid, 1, FALSE);
-    mid = tvb_get_guint8(ptvcursor_tvbuff(cursor),
-        ptvcursor_current_offset(cursor)) & HOMEPLUG_VS_MID;
 
     ptvcursor_push_subtree(cursor, it, ett_homeplug_vs_mid);
     {