[PATCH 10/22] Simplify dtrace_stmt_create() attr init

eugene.loh
2024-08-29T05:22:45Z

From: Eugene Loh <eugene.loh@oracle.com>

Even though dtrace_stmt_create() initializes dtsd_descattr and
dtsd_stmtattr, there is no point to doing so. Its only caller
is dt_stmt_create(), which itself sets these members.

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
---
libdtrace/dt_program.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/libdtrace/dt_program.c b/libdtrace/dt_program.c
index a4b052fc..bdb434e0 100644
--- a/libdtrace/dt_program.c
+++ b/libdtrace/dt_program.c
@@ -240,8 +240,6 @@ dtrace_stmt_create(dtrace_hdl_t *dtp, dtrace_ecbdesc_t *edp)

dt_ecbdesc_hold(edp);
sdp->dtsd_ecbdesc = edp;
- sdp->dtsd_descattr = _dtrace_defattr;
- sdp->dtsd_stmtattr = _dtrace_defattr;

return sdp;
}
--
2.43.5