aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-23 20:50:12 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-23 20:50:12 +0000
commit5329e525d3c2aa9dbc3ce06f1c9997353dba0b15 (patch)
tree2a3219ead405b94b8f2981fad759369f4f211074 /epan/dissectors
parentcc63e81ecb399feeac8ec7b6e7a433b74d84e65e (diff)
Remove some unneeded lines of code.
svn path=/trunk/; revision=39526
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-mim.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-mim.c b/epan/dissectors/packet-mim.c
index 0c8a477aaa..9058eb99c9 100644
--- a/epan/dissectors/packet-mim.c
+++ b/epan/dissectors/packet-mim.c
@@ -161,9 +161,9 @@ fp_get_hmac_addr (guint64 hmac, guint16 *swid, guint16 *sswid, guint16 *lid) {
return;
}
- *swid = (guint16) ((hmac & FP_HMAC_SWID_MASK) >> 24);
+ *swid = (guint16) ((hmac & FP_HMAC_SWID_MASK) >> 24);
*sswid = (guint16) ((hmac & FP_HMAC_SSWID_MASK) >> 16);
- *lid = (guint16) (hmac & FP_HMAC_LID_MASK);
+ *lid = (guint16) (hmac & FP_HMAC_LID_MASK);
}
static void
@@ -175,10 +175,6 @@ fp_add_hmac (tvbuff_t *tvb, proto_tree *tree, int offset) {
return;
}
- if (!tvb || !tree) {
- return;
- }
-
eid = tvb_get_ntohs(tvb, offset);
eid &= FP_EID_MASK;