Commit 77e53cb
committed
ftrace: Remove unneeded goto jumps
There are some goto jumps to exit a program to just return a value. The
code after the label doesn't free anything nor does it do any unlocks. It
simply returns the variable that was set before the jump.
Remove these unneeded goto jumps.
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/20241223184941.544855549@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent ac8c3b0 commit 77e53cb
1 file changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
1672 | | - | |
| 1672 | + | |
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
1678 | | - | |
1679 | | - | |
1680 | 1678 | | |
1681 | 1679 | | |
1682 | 1680 | | |
| |||
2071 | 2069 | | |
2072 | 2070 | | |
2073 | 2071 | | |
2074 | | - | |
| 2072 | + | |
2075 | 2073 | | |
2076 | 2074 | | |
2077 | 2075 | | |
| |||
2084 | 2082 | | |
2085 | 2083 | | |
2086 | 2084 | | |
2087 | | - | |
2088 | 2085 | | |
2089 | 2086 | | |
2090 | 2087 | | |
| |||
5720 | 5717 | | |
5721 | 5718 | | |
5722 | 5719 | | |
5723 | | - | |
| 5720 | + | |
5724 | 5721 | | |
5725 | 5722 | | |
5726 | | - | |
5727 | | - | |
5728 | | - | |
| 5723 | + | |
5729 | 5724 | | |
5730 | 5725 | | |
5731 | 5726 | | |
| |||
0 commit comments