Skip to contentSkip to conversation

libtraceevent: Clean up tep_parse_printk_formats() variables

PATCH New Steven Rostedt 1 participant 1 message Apr 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libtraceevent: Clean up tep_parse_printk_formats() variables

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

Just a simply clean up of the tep_parse_printk_formats().

Had done some debugging in this section, but found the bug elsewhere, but in the mean time, I had rearranged the variables, and removed the unneeded setting of "next" with NULL.

---
 src/event-parse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/event-parse.c +2 -2
index 8d1ac65..732987a 100644
@@ -931,11 +931,11 @@ void tep_print_printk(struct tep_handle *tep)
 int tep_parse_printk_formats(struct tep_handle *tep, const char *buf)
 {
 	unsigned long long addr;
+	char *addr_str;
 	char *copy;
 	char *printk;
 	char *line;
-	char *next = NULL;
-	char *addr_str;
+	char *next;
 	char *fmt;
 	int ret = -1;
 
Signature · 1 line
2.29.2