remove some redundant code that would always evaluate to true anyway.

svn path=/trunk/; revision=15996
This commit is contained in:
Ronnie Sahlberg 2005-09-25 01:44:23 +00:00
parent b56bc5db31
commit d160beec37
1 changed files with 3 additions and 3 deletions

View File

@ -2288,7 +2288,7 @@ static void dissect_ospf_v3_prefix_options(tvbuff_t *tvb, int offset, proto_tree
}
if (prefix_options & OSPF_V3_PREFIX_OPTION_MC) {
if ( (position > 0) && (prefix_options_string[position-1] != '/') ) {
if (position > 0) {
prefix_options_string[position++]='/';
}
prefix_options_string[position++]='M';
@ -2296,7 +2296,7 @@ static void dissect_ospf_v3_prefix_options(tvbuff_t *tvb, int offset, proto_tree
}
if (prefix_options & OSPF_V3_PREFIX_OPTION_LA) {
if ( (position > 0) && (prefix_options_string[position-1] != '/') ) {
if (position > 0) {
prefix_options_string[position++]='/';
}
prefix_options_string[position++]='L';
@ -2304,7 +2304,7 @@ static void dissect_ospf_v3_prefix_options(tvbuff_t *tvb, int offset, proto_tree
}
if (prefix_options & OSPF_V3_PREFIX_OPTION_NU) {
if ( (position > 0) && (prefix_options_string[position-1] != '/') ) {
if (position > 0){
prefix_options_string[position++]='/';
}
prefix_options_string[position++]='N';