aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lpd.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-06-14 17:49:53 +0000
committerMichael Mann <mmann78@netscape.net>2013-06-14 17:49:53 +0000
commitde68fd6eea9996ca8572220f379e376acd0181e2 (patch)
treec874b6fd18d5b571366c0e3017b58e1fb73f3266 /epan/dissectors/packet-lpd.c
parent14b65f91a44b89ef460df391717b2a6ac317980d (diff)
Removed check_col() and the occasional tree.
svn path=/trunk/; revision=49938
Diffstat (limited to 'epan/dissectors/packet-lpd.c')
-rw-r--r--epan/dissectors/packet-lpd.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/epan/dissectors/packet-lpd.c b/epan/dissectors/packet-lpd.c
index d726f9d2b1..48f94f511c 100644
--- a/epan/dissectors/packet-lpd.c
+++ b/epan/dissectors/packet-lpd.c
@@ -88,16 +88,14 @@ dissect_lpd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
lpr_packet_type = unknown;
}
- if (check_col(pinfo->cinfo, COL_INFO)) {
- if (lpr_packet_type == request && code !=0) {
- col_add_str(pinfo->cinfo, COL_INFO, val_to_str(code, lpd_client_code, "Unknown client code: %u"));
- }
- else if (lpr_packet_type == response) {
- col_set_str(pinfo->cinfo, COL_INFO, "LPD response");
- }
- else {
- col_set_str(pinfo->cinfo, COL_INFO, "LPD continuation");
- }
+ if (lpr_packet_type == request && code !=0) {
+ col_add_str(pinfo->cinfo, COL_INFO, val_to_str(code, lpd_client_code, "Unknown client code: %u"));
+ }
+ else if (lpr_packet_type == response) {
+ col_set_str(pinfo->cinfo, COL_INFO, "LPD response");
+ }
+ else {
+ col_set_str(pinfo->cinfo, COL_INFO, "LPD continuation");
}
if (tree) {