aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-pipe.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-08 10:51:33 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-08 10:51:33 +0000
commitb1a11016ec774ddad96f4182abaeba3da5b5841b (patch)
treefa0af2f2594e32c5c041fbb3778d85188723733a /epan/dissectors/packet-smb-pipe.c
parent806a5c8d950c2500da1a59a0070a98042208df7e (diff)
remove a redundant if statement
this if statement always evaluate to true since it is called from a single place that is only entered if the very same expression is also true there. svn path=/trunk/; revision=17524
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r--epan/dissectors/packet-smb-pipe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-smb-pipe.c b/epan/dissectors/packet-smb-pipe.c
index b69503ef44..2ccd17a336 100644
--- a/epan/dissectors/packet-smb-pipe.c
+++ b/epan/dissectors/packet-smb-pipe.c
@@ -2470,7 +2470,7 @@ dissect_response_data(tvbuff_t *tvb, packet_info *pinfo, int convert,
const struct lanman_desc *lanman, gboolean has_ent_count,
guint16 ent_count)
{
- smb_transact_info_t *trp = NULL;
+ smb_transact_info_t *trp;
const item_list_t *resp_data_list;
int offset, start_offset;
const char *label;
@@ -2483,8 +2483,7 @@ dissect_response_data(tvbuff_t *tvb, packet_info *pinfo, int convert,
guint i, j;
guint16 aux_count;
- if (smb_info->sip->extra_info_type == SMB_EI_TRI)
- trp = smb_info->sip->extra_info;
+ trp = smb_info->sip->extra_info;
/*
* Find the item table for the matching request's detail level.