Skip to contentSkip to conversation

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

PATCH Steven Rostedt 1 participant 1 message Jul 31, 2022

lore
Share & tools
lore
#0 lore raw

From: "Steven Rostedt (Google)" <[email protected]>

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

Fixes b1504f78 ("libtraceevent: Add dynamic_offset()")

---

Added on top of: https://lore.kernel.org/all/[email protected]/

 src/event-parse.c | 1 -
 1 file changed, 1 deletion(-)
src/event-parse.c +0 -1
index b3caff6..980e980 100644
@@ -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 */
Signature · 1 line
2.35.1