perf tools: Remove unneeded semicolons
authorZou Wei <zou_wei@huawei.com>
Tue, 28 Apr 2020 09:18:43 +0000 (17:18 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 30 Apr 2020 13:48:32 +0000 (10:48 -0300)
Fixes coccicheck warnings:

  tools/perf/builtin-diff.c:1565:2-3: Unneeded semicolon
  tools/perf/builtin-lock.c:778:2-3: Unneeded semicolon
  tools/perf/builtin-mem.c:126:2-3: Unneeded semicolon
  tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c:555:2-3: Unneeded semicolon
  tools/perf/util/ordered-events.c:317:2-3: Unneeded semicolon
  tools/perf/util/synthetic-events.c:1131:2-3: Unneeded semicolon
  tools/perf/util/trace-event-read.c:78:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/1588065523-71423-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-diff.c
tools/perf/builtin-lock.c
tools/perf/builtin-mem.c
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
tools/perf/util/ordered-events.c
tools/perf/util/synthetic-events.c
tools/perf/util/trace-event-read.c

index c94a002f295e007f05426d2edd6520cc3d3a4a37..59d40f036587b96592da94e2b57799e10ef84c4a 100644 (file)
@@ -1562,7 +1562,7 @@ hpp__entry_pair(struct hist_entry *he, struct hist_entry *pair,
 
        default:
                BUG_ON(1);
-       };
+       }
 }
 
 static void
index 474dfd59d7eb23585b08075d817f51213fbf2f7b..543d82fec55609cc561ce2dbbdae6f97843a3652 100644 (file)
@@ -775,7 +775,7 @@ static void dump_threads(void)
                pr_info("%10d: %s\n", st->tid, thread__comm_str(t));
                node = rb_next(node);
                thread__put(t);
-       };
+       }
 }
 
 static void dump_map(void)
index a13f5817d6fca4abac7cdfa80f5b90b1a8c3a097..68a7eb84561a1b12d94bd2196430c7d8fbfc04ff 100644 (file)
@@ -123,7 +123,7 @@ static int __cmd_record(int argc, const char **argv, struct perf_mem *mem)
 
                rec_argv[i++] = "-e";
                rec_argv[i++] = perf_mem_events__name(j);
-       };
+       }
 
        if (all_user)
                rec_argv[i++] = "--all-user";
index 0ccf10a0bf44527124ef28771168bfd53085800b..4ce109993e74e1dad7b690f4bf80d574dda03d75 100644 (file)
@@ -552,7 +552,7 @@ static int intel_pt_do_get_packet(const unsigned char *buf, size_t len,
                break;
        default:
                break;
-       };
+       }
 
        if (!(byte & BIT(0))) {
                if (byte == 0)
index 359db2b1fcef3096bdcb36316c1374454876de13..48c8f609441b4c16b85f14645a8fef917d1a9ca3 100644 (file)
@@ -314,7 +314,7 @@ static int __ordered_events__flush(struct ordered_events *oe, enum oe_flush how,
        case OE_FLUSH__NONE:
        default:
                break;
-       };
+       }
 
        pr_oe_time(oe->next_flush, "next_flush - ordered_events__flush PRE  %s, nr_events %u\n",
                   str[how], oe->nr_events);
index 1ea9adaef9c7c478f32a2a74aaad5f5c777a995e..89b390623b63d610e1d3730e236edd38090f8f01 100644 (file)
@@ -1181,7 +1181,7 @@ void cpu_map_data__synthesize(struct perf_record_cpu_map_data *data, struct perf
                synthesize_mask((struct perf_record_record_cpu_map *)data->data, map, max);
        default:
                break;
-       };
+       }
 }
 
 static struct perf_record_cpu_map *cpu_map_event__new(struct perf_cpu_map *map)
index 8593d3c200c610e7c0d8977058fdb3d63b536fa6..f507dff713c9f8e55df4a233517ce531132a239f 100644 (file)
@@ -75,7 +75,7 @@ static void skip(int size)
                r = size > BUFSIZ ? BUFSIZ : size;
                do_read(buf, r);
                size -= r;
-       };
+       }
 }
 
 static unsigned int read4(struct tep_handle *pevent)