Remove some unneeded lines of code.

svn path=/trunk/; revision=39526
This commit is contained in:
Bill Meier 2011-10-23 20:50:12 +00:00
parent cc63e81ecb
commit 5329e525d3
1 changed files with 2 additions and 6 deletions

View File

@ -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;