Perf: Use fallthrough pseudo-keyword

Message ID 20240215092659.148946-1-pairmanxlr@gmail.com
State New
Headers
Series Perf: Use fallthrough pseudo-keyword |

Commit Message

Pairman Guo Feb. 15, 2024, 9:26 a.m. UTC
  Hi maintainers,

There is a usage of ``/* fall thru */`` in a switch statement in
hist_browser__handle_hotkey() that have long been untouched.
This patch replaced it with the better and proper pseudo-keyword
``fallthrough;``.

Please merge if it is the case. Thank you in advance.

Signed-off-by: Pairman Guo <pairmanxlr@gmail.com>
---
 tools/perf/ui/browsers/hists.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 0c02b3a8e..aed835946 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -732,7 +732,7 @@  static int hist_browser__handle_hotkey(struct hist_browser *browser, bool warn_l
 	case '+':
 		if (hist_browser__toggle_fold(browser))
 			break;
-		/* fall thru */
+		fallthrough;
 	default:
 		return -1;
 	}