git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/cnxk: make inline inbound device usage as default
[dpdk.git]
/
drivers
/
event
/
cnxk
/
cnxk_tim_evdev.c
diff --git
a/drivers/event/cnxk/cnxk_tim_evdev.c
b/drivers/event/cnxk/cnxk_tim_evdev.c
index
4d22ac6
..
af67235
100644
(file)
--- a/
drivers/event/cnxk/cnxk_tim_evdev.c
+++ b/
drivers/event/cnxk/cnxk_tim_evdev.c
@@
-560,7
+560,7
@@
cnxk_tim_parse_ring_ctl_list(const char *value, void *opaque)
char *f = s;
if (s == NULL || !strlen(s))
char *f = s;
if (s == NULL || !strlen(s))
-
return
;
+
goto free
;
while (*s) {
if (*s == '[')
while (*s) {
if (*s == '[')
@@
-579,6
+579,7
@@
cnxk_tim_parse_ring_ctl_list(const char *value, void *opaque)
s++;
}
s++;
}
+free:
free(f);
}
free(f);
}
@@
-607,7
+608,7
@@
cnxk_tim_parse_clk_list(const char *value, void *opaque)
int i = 0;
if (str == NULL || !strlen(str))
int i = 0;
if (str == NULL || !strlen(str))
-
return
;
+
goto free
;
tok = strtok(str, "-");
while (tok != NULL && src[i] != ROC_TIM_CLK_SRC_INVALID) {
tok = strtok(str, "-");
while (tok != NULL && src[i] != ROC_TIM_CLK_SRC_INVALID) {
@@
-616,6
+617,7
@@
cnxk_tim_parse_clk_list(const char *value, void *opaque)
i++;
}
i++;
}
+free:
free(str);
}
free(str);
}