linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH] libtraceevent: Remove double assignment of val in  eval_num_arg()
@ 2022-07-31 16:07 Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2022-07-31 16:07 UTC (permalink / raw)
  To: Linux Trace Devel

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 --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 */
-- 
2.35.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-31 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-31 16:07 PATCH] libtraceevent: Remove double assignment of val in eval_num_arg() Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).