AMP: Remove a self-assignment.

Fix

../epan/dissectors/packet-amp.c:411:11: error: explicitly assigning value of variable of type 'packet_info *' (aka 'struct _packet_info *') to itself [-Werror,-Wself-assign]
    pinfo = pinfo;
    ~~~~~ ^ ~~~~~

Change-Id: I8c8b03672d5aaae65b23449c35c150ee8ee0dae6
Reviewed-on: https://code.wireshark.org/review/34711
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2019-10-04 09:51:50 -07:00
parent e7f5ba6aa7
commit efb6fa1e03
1 changed files with 1 additions and 3 deletions

View File

@ -376,7 +376,7 @@ static cborObj cbor_info(tvbuff_t *tvb, int offset)
}
void
dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset)
{
guint64 messages = 0;
unsigned int i=0;
@ -408,8 +408,6 @@ dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
int reportHasTimestamp = 0;
int report_types_offset = 0;
pinfo = pinfo;
amp_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_amp_proto,
&payload_item, "Payload Data: AMP Protocol");