Don't guard col_set_str (COL_PROTOCOL) with col_check
[obnox/wireshark/wip.git] / epan / dissectors / packet-xtp.c
index 72084428a57cf3b3e323ed5e2b3bfce0239ad750..ec5bec8462857be2021e510e7a0979764581f7cd 100644 (file)
@@ -811,8 +811,7 @@ dissect_xtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
        if ((len = tvb_length(tvb)) < XTP_HEADER_LEN)
                return 0;
 
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "XTP");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "XTP");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);