Commit ed888241 authored by Wan Jiabing's avatar Wan Jiabing Committed by Steven Rostedt (Google)
Browse files

ring-buffer: Simplify if-if to if-else

parent 4ee51101
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6011,10 +6011,10 @@ static __init int test_ringbuffer(void)
		pr_info("        total events:   %ld\n", total_lost + total_read);
		pr_info("  recorded len bytes:   %ld\n", total_len);
		pr_info(" recorded size bytes:   %ld\n", total_size);
		if (total_lost)
		if (total_lost) {
			pr_info(" With dropped events, record len and size may not match\n"
				" alloced and written from above\n");
		if (!total_lost) {
		} else {
			if (RB_WARN_ON(buffer, total_len != total_alloc ||
				       total_size != total_written))
				break;