diff mbox series

PATCH] libtraceevent: Remove double assignment of val in eval_num_arg()

Message ID 20220731120702.522724bd@rorschach.local.home (mailing list archive)
State Accepted
Commit c5493e713ca88a49c620181559f4c55aa46f01d7
Headers show
Series PATCH] libtraceevent: Remove double assignment of val in eval_num_arg() | expand

Commit Message

Steven Rostedt July 31, 2022, 4:07 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

The val variable is set twice in a row, remove one of them.

Fixes: b1504f78 ("libtraceevent: Add dynamic_offset()")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---

Added on top of: https://lore.kernel.org/all/20220731015928.7ab3a154@rorschach.local.home/

 src/event-parse.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/src/event-parse.c b/src/event-parse.c
index b3caff6..980e980 100644
--- a/src/event-parse.c
+++ b/src/event-parse.c
@@ -4314,7 +4314,6 @@  eval_num_arg(void *data, int size, struct tep_event *event, struct tep_print_arg
 			val = (unsigned long)data;
 			break;
 		}
-		val = (unsigned long long)((unsigned long)data + offset);
 		val = (unsigned long)data + offset;
 		break;
 	default: /* not sure what to do there */