Module Name: src Committed By: rillig Date: Sat Oct 1 10:07:55 UTC 2022
Modified Files: src/usr.bin/xlint/lint1: tree.c Log Message: lint: inline local variable in build_function_argument No functional change. To generate a diff of this commit: cvs rdiff -u -r1.482 -r1.483 src/usr.bin/xlint/lint1/tree.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.482 src/usr.bin/xlint/lint1/tree.c:1.483 --- src/usr.bin/xlint/lint1/tree.c:1.482 Sat Oct 1 10:04:06 2022 +++ src/usr.bin/xlint/lint1/tree.c Sat Oct 1 10:07:55 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: tree.c,v 1.482 2022/10/01 10:04:06 rillig Exp $ */ +/* $NetBSD: tree.c,v 1.483 2022/10/01 10:07:55 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: tree.c,v 1.482 2022/10/01 10:04:06 rillig Exp $"); +__RCSID("$NetBSD: tree.c,v 1.483 2022/10/01 10:07:55 rillig Exp $"); #endif #include <float.h> @@ -4049,8 +4049,6 @@ invalid_cast: tnode_t * build_function_argument(tnode_t *args, tnode_t *arg) { - tnode_t *ntn; - /* * If there was a serious error in the expression for the argument, * create a dummy argument so the positions of the remaining arguments @@ -4059,9 +4057,7 @@ build_function_argument(tnode_t *args, t if (arg == NULL) arg = build_integer_constant(INT, 0); - ntn = new_tnode(PUSH, arg->tn_sys, arg->tn_type, arg, args); - - return ntn; + return new_tnode(PUSH, arg->tn_sys, arg->tn_type, arg, args); } /*