projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Move headers from toplevel to include/lttng/
[lttng-modules.git]
/
lttng-tp-mempool.c
diff --git
a/lttng-tp-mempool.c
b/lttng-tp-mempool.c
index 9db6046b7c7813b97cd3a4f854696fa690ec0f69..70ee5cc6b9d7cfef42e3a8b91b480f8097e28c01 100644
(file)
--- a/
lttng-tp-mempool.c
+++ b/
lttng-tp-mempool.c
@@
-1,4
+1,4
@@
-/* SPDX-License-Identifier: (GPL-2.0
or LGPL-2.1
)
+/* SPDX-License-Identifier: (GPL-2.0
-only or LGPL-2.1-only
)
*
* lttng-tp-mempool.c
*
*
* lttng-tp-mempool.c
*
@@
-8,7
+8,7
@@
#include <linux/slab.h>
#include <linux/percpu.h>
#include <linux/slab.h>
#include <linux/percpu.h>
-#include <lttng
-
tp-mempool.h>
+#include <lttng
/
tp-mempool.h>
struct lttng_tp_buf_entry {
int cpu; /* To make sure we return the entry to the right pool. */
struct lttng_tp_buf_entry {
int cpu; /* To make sure we return the entry to the right pool. */
@@
-138,19
+138,12
@@
void lttng_tp_mempool_free(void *ptr)
struct lttng_tp_buf_entry *entry;
struct per_cpu_buf *cpu_buf;
struct lttng_tp_buf_entry *entry;
struct per_cpu_buf *cpu_buf;
- if (!ptr)
{
+ if (!ptr)
goto end;
goto end;
- }
-
entry = container_of(ptr, struct lttng_tp_buf_entry, buf);
entry = container_of(ptr, struct lttng_tp_buf_entry, buf);
- if (!entry) {
- goto end;
- }
-
cpu_buf = per_cpu_ptr(pool, entry->cpu);
cpu_buf = per_cpu_ptr(pool, entry->cpu);
- if (!cpu_buf)
{
+ if (!cpu_buf)
goto end;
goto end;
- }
/* Add it to the free list. */
list_add_tail(&entry->list, &cpu_buf->free_list);
/* Add it to the free list. */
list_add_tail(&entry->list, &cpu_buf->free_list);
This page took
0.023489 seconds
and
4
git commands to generate.