diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-11-14 20:04:04 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-11-14 20:04:04 +0000 |
commit | 47c4f27e0e3645cfab93366a4bd2aba9e5eb4553 (patch) | |
tree | 96320a582f3163c4df908c1332287af87e335515 /epan/dissectors/packet-hsr.c | |
parent | 5f73d64e50aadbf29a28a71eab37f821072fa548 (diff) |
Remove uneeded #includes, forward refs & check_col();
tvb_reported_length_remaining() can return -1;
Localize a variable.
svn path=/trunk/; revision=39836
Diffstat (limited to 'epan/dissectors/packet-hsr.c')
-rw-r--r-- | epan/dissectors/packet-hsr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/dissectors/packet-hsr.c b/epan/dissectors/packet-hsr.c index 490cc2193f..ced36b443f 100644 --- a/epan/dissectors/packet-hsr.c +++ b/epan/dissectors/packet-hsr.c @@ -83,12 +83,9 @@ dissect_hsr_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint16 etype; guint16 lsdu_size, lsdu_size_correct; - if (check_col(pinfo->cinfo, COL_PROTOCOL)) - col_set_str(pinfo->cinfo, COL_PROTOCOL, "HSR"); + col_set_str(pinfo->cinfo, COL_PROTOCOL, "HSR"); - if (check_col(pinfo->cinfo, COL_INFO)){ - col_set_str(pinfo->cinfo, COL_INFO, "HSR-Data Frame"); - } + col_set_str(pinfo->cinfo, COL_INFO, "HSR-Data Frame"); /* create display subtree for the protocol */ |