Remove a few of "if (tree)" checks surrounding expert_add_info_format().

svn path=/trunk/; revision=43054
This commit is contained in:
Chris Maynard 2012-06-04 06:22:50 +00:00
parent eb03bb0290
commit 4902b4d857
1 changed files with 3 additions and 4 deletions

View File

@ -762,7 +762,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/*********************************************************************
**********************************************************************/
case EAP_TYPE_MD5:
if (tree) {
{
guint8 value_size = tvb_get_guint8(tvb, offset);
gint extra_len = size - 1 - value_size;
proto_item *item;
@ -1130,8 +1130,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
EAP-MSCHAPv2 - draft-kamath-pppext-eap-mschapv2-00.txt
**********************************************************************/
case EAP_TYPE_MSCHAPV2:
if (tree)
dissect_eap_mschapv2(eap_tree, tvb, pinfo, offset, size);
dissect_eap_mschapv2(eap_tree, tvb, pinfo, offset, size);
break; /* EAP_TYPE_MSCHAPV2 */
/*********************************************************************
@ -1155,7 +1154,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
EAP Expanded Type
**********************************************************************/
case EAP_TYPE_EXT:
if (tree) {
{
proto_item *expti = NULL;
proto_tree *exptree = NULL;