Skip to content

Commit 421d9d1

Browse files
ISCAS-Vulabrostedt
authored andcommitted
tools/latency-collector: Remove unneeded semicolon
Fix semicolon.cocci warning: tools/tracing/latency/latency-collector.c:1021:2-3: Unneeded semicolon Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Viktor Rosendahl <[email protected]> Signed-off-by: Xu Wang <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 2b7d2fe commit 421d9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/tracing/latency/latency-collector.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ static long go_to_sleep(const struct entry *req)
10181018
cond_timedwait(&printstate.cond, &printstate.mutex, &future);
10191019
if (time_has_passed(&future))
10201020
break;
1021-
};
1021+
}
10221022

10231023
if (printstate_has_new_req_arrived(req))
10241024
delay = -1;
@@ -1941,7 +1941,7 @@ static void scan_arguments(int argc, char *argv[])
19411941
if (value < 0) {
19421942
warnx("TIME must be >= 0\n");
19431943
show_usage();
1944-
;
1944+
exit(0);
19451945
}
19461946
trace_enable = true;
19471947
use_random_sleep = true;

0 commit comments

Comments
 (0)