Remove unnecessary null check

Removes NULL check on variable, which has already been used. Fixes an
issue reported by coverity scan.
This commit is contained in:
Ruslan Fomkin 2020-04-07 13:49:12 +02:00 committed by Erik Nordström
parent 5df7946e88
commit bd9a755298

View File

@ -547,14 +547,14 @@ reenable_inheritance(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTblEntr
RelOptInfo *in_rel = root->simple_rel_array[i];
Hypertable *ht = get_hypertable(in_rte->relid, CACHE_FLAG_NOCREATE);
Assert(ht != NULL);
Assert(ht != NULL && in_rel != NULL);
ts_plan_expand_hypertable_chunks(ht, root, in_rel);
/* TODO move this back into ts_plan_expand_hypertable_chunks */
in_rte->inh = true;
reenabled_inheritance = true;
/* FIXME redo set_rel_consider_parallel */
if (in_rel != NULL && in_rel->reloptkind == RELOPT_BASEREL)
if (in_rel->reloptkind == RELOPT_BASEREL)
ts_set_rel_size(root, in_rel, i, in_rte);
/* if we're activating inheritance during a hypertable's pathlist