1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +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

@@ -131,8 +131,7 @@ identify_system:
base_backup:
K_BASE_BACKUP base_backup_opt_list
{
BaseBackupCmd *cmd =
(BaseBackupCmd *) makeNode(BaseBackupCmd);
BaseBackupCmd *cmd = makeNode(BaseBackupCmd);
cmd->options = $2;
$$ = (Node *) cmd;
}