diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2016-12-23 12:00:00 -0500 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2016-12-23 13:17:20 -0500 |
commit | 158df30359025d74daee74a3b927fd07c3b1a413 (patch) | |
tree | 54298db15c9d6e0b5a9bcd95911048147ffb0dc0 /src/backend/commands/tablecmds.c | |
parent | 3c9d398484fb6e188e665be8299d6e5e89924c94 (diff) |
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.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 13b12f19035..0e7601fd942 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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; |