Skip to contentSkip to conversation

perf metricgroup: remove unneeded semicolon

PATCH Applied Yang Li 3 participants 3 messages Feb 1, 2021 – Feb 17, 2021 perf events

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 perf metricgroup: remove unneeded semicolon

Eliminate the following coccicheck warning:
./tools/perf/util/metricgroup.c:382:3-4: Unneeded semicolon

---
 tools/perf/util/metricgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/metricgroup.c +1 -1
index e6d3452..26c990e 100644
@@ -379,7 +379,7 @@ static int metricgroup__setup_events(struct list_head *groups,
 				metric_refs[i].metric_expr = ref->metric_expr;
 				i++;
 			}
-		};
+		}
 
 		expr->metric_refs = metric_refs;
 		expr->metric_expr = m->metric_expr;
Signature · 1 line
1.8.3.1
maintainer Acked-by on v1 1/1
#1 lore raw

Hello,

Quoted 6 lines · Yang Li

Eliminate the following coccicheck warning:
./tools/perf/util/metricgroup.c:382:3-4: Unneeded semicolon

Thanks,
Namhyung

Quoted 20 lines
---
 tools/perf/util/metricgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/metricgroup.c +1 -2
index e6d3452..26c990e 100644
@@ -379,7 +379,7 @@ static int metricgroup__setup_events(struct list_head *groups,
                                metric_refs[i].metric_expr = ref->metric_expr;
                                i++;
                        }
-               };
+               }
 
                expr->metric_refs = metric_refs;
                expr->metric_expr = m->metric_expr;
--

1.8.3.1

maintainer Applied
#2 lore raw

Em Tue, Feb 16, 2021 at 04:34:25PM +0900, Namhyung Kim escreveu:

Quoted 11 lines

Hello,

Quoted 6 lines · Yang Li

Eliminate the following coccicheck warning:
./tools/perf/util/metricgroup.c:382:3-4: Unneeded semicolon

Thanks, applied.

- Arnaldo

Quoted 23 lines

Thanks,
Namhyung

Quoted 20 lines
---
 tools/perf/util/metricgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/metricgroup.c +1 -2
index e6d3452..26c990e 100644
@@ -379,7 +379,7 @@ static int metricgroup__setup_events(struct list_head *groups,
                                metric_refs[i].metric_expr = ref->metric_expr;
                                i++;
                        }
-               };
+               }
 
                expr->metric_refs = metric_refs;
                expr->metric_expr = m->metric_expr;
--

1.8.3.1

Signature · 1 line
- Arnaldo