summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r--bgpd/bgp_dump.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c
index e9711f5b9..298f9d021 100644
--- a/bgpd/bgp_dump.c
+++ b/bgpd/bgp_dump.c
@@ -667,9 +667,7 @@ static int bgp_dump_set(struct vty *vty, struct bgp_dump *bgp_dump,
static int bgp_dump_unset(struct bgp_dump *bgp_dump)
{
/* Removing file name. */
- if (bgp_dump->filename) {
- XFREE(MTYPE_BGP_DUMP_STR, bgp_dump->filename);
- }
+ XFREE(MTYPE_BGP_DUMP_STR, bgp_dump->filename);
/* Closing file. */
if (bgp_dump->fp) {
@@ -686,9 +684,7 @@ static int bgp_dump_unset(struct bgp_dump *bgp_dump)
bgp_dump->interval = 0;
/* Removing interval string. */
- if (bgp_dump->interval_str) {
- XFREE(MTYPE_BGP_DUMP_STR, bgp_dump->interval_str);
- }
+ XFREE(MTYPE_BGP_DUMP_STR, bgp_dump->interval_str);
return CMD_SUCCESS;
}