Don't guard col_set_str (COL_PROTOCOL) with col_check
[obnox/wireshark/wip.git] / asn1 / ros / packet-ros-template.c
index 66a7a3db40a646a9a11a95a79b8de2fbdea5e8db..3b8c3d24ead788dddb23861f33d06a23144c4a97 100644 (file)
@@ -442,8 +442,7 @@ dissect_ros(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                item = proto_tree_add_item(parent_tree, proto_ros, tvb, 0, -1, FALSE);
                tree = proto_item_add_subtree(item, ett_ros);
        }
-       if (check_col(pinfo->cinfo, COL_PROTOCOL))
-               col_set_str(pinfo->cinfo, COL_PROTOCOL, "ROS");
+       col_set_str(pinfo->cinfo, COL_PROTOCOL, "ROS");
        if (check_col(pinfo->cinfo, COL_INFO))
                col_clear(pinfo->cinfo, COL_INFO);