Commit 12d5189
committed
tracing: Use __free(kfree) in trace.c to remove gotos
There's a couple of locations that have goto out in trace.c for the only
purpose of freeing a variable that was allocated. These can be replaced
with __free(kfree).
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/20250801203858.040892777@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent debe57f commit 12d5189
1 file changed
Lines changed: 12 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5042 | 5042 | | |
5043 | 5043 | | |
5044 | 5044 | | |
5045 | | - | |
| 5045 | + | |
5046 | 5046 | | |
5047 | 5047 | | |
5048 | 5048 | | |
| |||
5053 | 5053 | | |
5054 | 5054 | | |
5055 | 5055 | | |
5056 | | - | |
5057 | | - | |
5058 | | - | |
5059 | | - | |
5060 | | - | |
5061 | | - | |
5062 | | - | |
5063 | | - | |
| 5056 | + | |
| 5057 | + | |
5064 | 5058 | | |
5065 | | - | |
| 5059 | + | |
5066 | 5060 | | |
5067 | 5061 | | |
5068 | 5062 | | |
| |||
10739 | 10733 | | |
10740 | 10734 | | |
10741 | 10735 | | |
10742 | | - | |
| 10736 | + | |
| 10737 | + | |
10743 | 10738 | | |
10744 | 10739 | | |
10745 | 10740 | | |
| |||
10754 | 10749 | | |
10755 | 10750 | | |
10756 | 10751 | | |
10757 | | - | |
10758 | | - | |
10759 | | - | |
10760 | | - | |
| 10752 | + | |
| 10753 | + | |
| 10754 | + | |
10761 | 10755 | | |
10762 | 10756 | | |
10763 | 10757 | | |
| |||
10773 | 10767 | | |
10774 | 10768 | | |
10775 | 10769 | | |
10776 | | - | |
10777 | | - | |
| 10770 | + | |
10778 | 10771 | | |
10779 | 10772 | | |
10780 | 10773 | | |
| |||
10787 | 10780 | | |
10788 | 10781 | | |
10789 | 10782 | | |
10790 | | - | |
| 10783 | + | |
10791 | 10784 | | |
10792 | 10785 | | |
10793 | 10786 | | |
10794 | 10787 | | |
10795 | | - | |
10796 | | - | |
10797 | | - | |
10798 | | - | |
10799 | | - | |
10800 | | - | |
| 10788 | + | |
10801 | 10789 | | |
10802 | 10790 | | |
10803 | 10791 | | |
| |||
0 commit comments