diff options
Diffstat (limited to 'bgpd/bgp_attr.c')
| -rw-r--r-- | bgpd/bgp_attr.c | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index e731af754c..e44424e080 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -158,8 +158,7 @@ static bool cluster_hash_cmp(const void *p1, const void *p2)  static void cluster_free(struct cluster_list *cluster)  { -	if (cluster->list) -		XFREE(MTYPE_CLUSTER_VAL, cluster->list); +	XFREE(MTYPE_CLUSTER_VAL, cluster->list);  	XFREE(MTYPE_CLUSTER, cluster);  } @@ -400,8 +399,7 @@ static struct hash *transit_hash;  static void transit_free(struct transit *transit)  { -	if (transit->val) -		XFREE(MTYPE_TRANSIT_VAL, transit->val); +	XFREE(MTYPE_TRANSIT_VAL, transit->val);  	XFREE(MTYPE_TRANSIT, transit);  }  | 
