aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-fileexp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-05-16 08:55:31 +0200
committerAnders Broman <a.broman58@gmail.com>2018-05-17 04:27:06 +0000
commitd8ab5676dc25686eabcf1cdf0c66882d2b2a88cf (patch)
tree4f815c9ad1c9c94765193fd05d685e498209163e /epan/dissectors/packet-dcerpc-fileexp.c
parentb5cba9ea1177e4319686e2950f741758a2d5529f (diff)
dcerpc-fileexp: fix issue found by PVS Studio (V523)
The 'then' statement is equivalent to the subsequent code fragment. Change-Id: I2c44ef7d43468a70e7eb48326af962c908a656be Reviewed-on: https://code.wireshark.org/review/27600 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dcerpc-fileexp.c')
-rw-r--r--epan/dissectors/packet-dcerpc-fileexp.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/epan/dissectors/packet-dcerpc-fileexp.c b/epan/dissectors/packet-dcerpc-fileexp.c
index dbc432d666..45b4c1b6f0 100644
--- a/epan/dissectors/packet-dcerpc-fileexp.c
+++ b/epan/dissectors/packet-dcerpc-fileexp.c
@@ -3458,13 +3458,8 @@ static int
static int
fileexp_dissect_gettime_rqst (tvbuff_t *tvb _U_, int offset,
packet_info *pinfo _U_, proto_tree *tree _U_,
- dcerpc_info *di, guint8 *drep _U_)
+ dcerpc_info *di _U_, guint8 *drep _U_)
{
- if (di->conformant_run)
- {
- return offset;
- }
-
/* nothing */
return offset;
@@ -3532,12 +3527,8 @@ static int
static int
fileexp_dissect_getserverinterfaces_rqst (tvbuff_t *tvb _U_, int offset,
packet_info *pinfo _U_, proto_tree *tree _U_,
- dcerpc_info *di, guint8 *drep _U_)
+ dcerpc_info *di _U_, guint8 *drep _U_)
{
- if (di->conformant_run)
- {
- return offset;
- }
/*
[in, out] dfs_interfaceList *serverInterfacesP
@@ -3660,12 +3651,8 @@ static int
static int
fileexp_dissect_getstatistics_resp (tvbuff_t *tvb _U_, int offset,
packet_info *pinfo _U_, proto_tree *tree _U_,
- dcerpc_info *di, guint8 *drep _U_)
+ dcerpc_info *di _U_, guint8 *drep _U_)
{
- if (di->conformant_run)
- {
- return offset;
- }
/*
[out] afsStatistics *Statisticsp
@@ -3722,13 +3709,8 @@ static int
static int
fileexp_dissect_bulkfetchvv_resp (tvbuff_t *tvb _U_, int offset,
packet_info *pinfo _U_, proto_tree *tree _U_,
- dcerpc_info *di, guint8 *drep _U_)
+ dcerpc_info *di _U_, guint8 *drep _U_)
{
- if (di->conformant_run)
- {
- return offset;
- }
-
/*
[out] afsBulkVVs *VolVVsp,
[out] unsigned32 *spare4