1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Remove unnecessary casts of makeNode() result

makeNode() is already a macro that has the right result pointer type, so
casting it again to the same type is unnecessary.
This commit is contained in:
Peter Eisentraut
2016-12-23 12:00:00 -05:00
parent 3c9d398484
commit 158df30359
4 changed files with 12 additions and 13 deletions

View File

@ -12743,7 +12743,7 @@ transformPartitionSpec(Relation rel, PartitionSpec *partspec, char *strategy)
RangeTblEntry *rte;
ListCell *l;
newspec = (PartitionSpec *) makeNode(PartitionSpec);
newspec = makeNode(PartitionSpec);
newspec->strategy = partspec->strategy;
newspec->location = partspec->location;