Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67f20b08 authored by Wei Yongjun's avatar Wei Yongjun Committed by Steven Rostedt
Browse files

tracing: Using for_each_set_bit() to simplify trace_pid_write()

parent 501c2375
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -517,13 +517,9 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,

	if (filtered_pids) {
		/* copy the current bits to the new max */
		pid = find_first_bit(filtered_pids->pids,
				     filtered_pids->pid_max);
		while (pid < filtered_pids->pid_max) {
		for_each_set_bit(pid, filtered_pids->pids,
				 filtered_pids->pid_max) {
			set_bit(pid, pid_list->pids);
			pid = find_next_bit(filtered_pids->pids,
					    filtered_pids->pid_max,
					    pid + 1);
			nr_pids++;
		}
	}