Don't guard col_set_str (COL_PROTOCOL) with col_check
[obnox/wireshark/wip.git] / plugins / ethercat / packet-ioraw.c
index a79feea04af787ef4518b6b19d0583828ea7aac2..780451181e95b324f333cb84524aeb4fcdae6513 100644 (file)
@@ -69,8 +69,7 @@ static void dissect_ioraw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
    guint ioraw_length = tvb_reported_length(tvb);
    
-   if (check_col(pinfo->cinfo, COL_PROTOCOL)) 
-      col_set_str(pinfo->cinfo, COL_PROTOCOL, "IO-RAW");
+   col_set_str(pinfo->cinfo, COL_PROTOCOL, "IO-RAW");
 
    if (check_col(pinfo->cinfo, COL_INFO))
       col_clear(pinfo->cinfo, COL_INFO);