summaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2016-12-23 12:00:00 -0500
committerPeter Eisentraut <peter_e@gmx.net>2016-12-23 13:17:20 -0500
commit158df30359025d74daee74a3b927fd07c3b1a413 (patch)
tree54298db15c9d6e0b5a9bcd95911048147ffb0dc0 /src/backend/commands/tablecmds.c
parent3c9d398484fb6e188e665be8299d6e5e89924c94 (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.c2
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;