From 6110a96f689d51c92c5b00b4dfda3a9cd6916a25 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Sun, 9 Aug 2009 07:59:51 +0000 Subject: Don't guard col_set_str (COL_INFO/COL_PROTOCOL) with col_check svn path=/trunk/; revision=29345 --- plugins/ethercat/packet-ethercat-frame.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/ethercat') diff --git a/plugins/ethercat/packet-ethercat-frame.c b/plugins/ethercat/packet-ethercat-frame.c index 68385413fe..8e8c0be533 100644 --- a/plugins/ethercat/packet-ethercat-frame.c +++ b/plugins/ethercat/packet-ethercat-frame.c @@ -82,10 +82,7 @@ static void dissect_ethercat_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree gint offset = 0; EtherCATFrameParserHDR hdr; - if (check_col(pinfo->cinfo, COL_PROTOCOL)) - { - col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECATF"); - } + col_set_str(pinfo->cinfo, COL_PROTOCOL, "ECATF"); if (check_col(pinfo->cinfo, COL_INFO)) { -- cgit v1.2.3