Skip to content

Commit

Permalink
drouting: remove useles code
Browse files Browse the repository at this point in the history
Fixes Coverity CID #199955
  • Loading branch information
razvancrainea committed Jul 20, 2020
1 parent f9c3f02 commit 6cc8af0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/drouting/drouting.c
Expand Up @@ -1001,7 +1001,6 @@ static inline int dr_reload_data_head(struct head_db *hd,
pgw_t *gw, *old_gw;
pcr_t *cr, *old_cr;
time_t rawtime;
struct head_cache *cache = NULL;
struct dr_prepare_part_params pp;

void **dest;
Expand Down Expand Up @@ -1099,8 +1098,6 @@ static inline int dr_reload_data_head(struct head_db *hd,
error:
if (no_concurrent_reload)
hd->ongoing_reload = 0;
if (cache)
clean_head_cache(cache);
return -1;
}

Expand Down

0 comments on commit 6cc8af0

Please sign in to comment.