Skip to contentSkip to conversation

perf evlist: Remove trailing semicolon

PATCH New Luis de Bethencourt 2 participants 2 messages Jan 11, 2018 – Jan 17, 2018 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf evlist: Remove trailing semicolon

The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything.

---

Hi,

After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0].

Best regards
Luis

[0] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115410.html
[1] http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-January/115390.html

 tools/perf/util/evlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/evlist.c +1 -1
index f0a5e09c4071..120efd85f2c8 100644
@@ -1760,7 +1760,7 @@ void perf_evlist__toggle_bkw_mmap(struct perf_evlist *evlist,
 	switch (old_state) {
 	case BKW_MMAP_NOTREADY: {
 		if (state != BKW_MMAP_RUNNING)
-			goto state_err;;
+			goto state_err;
 		break;
 	}
 	case BKW_MMAP_RUNNING: {
Signature · 1 line
2.15.1
#1 lore raw
perf evlist: Remove trailing semicolon
Commit-ID:  dd8bd53ab86133327412e74bf5ba31a8ec2826d4
Gitweb:     https://git.kernel.org/tip/dd8bd53ab86133327412e74bf5ba31a8ec2826d4
Author:     Luis de Bethencourt <[email protected]>
AuthorDate: Thu, 11 Jan 2018 15:50:20 +0000
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 12 Jan 2018 11:02:55 -0300

perf evlist: Remove trailing semicolon

The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything.

---
 tools/perf/util/evlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/evlist.c +1 -1
index f0a5e09..120efd8 100644
@@ -1760,7 +1760,7 @@ void perf_evlist__toggle_bkw_mmap(struct perf_evlist *evlist,
 	switch (old_state) {
 	case BKW_MMAP_NOTREADY: {
 		if (state != BKW_MMAP_RUNNING)
-			goto state_err;;
+			goto state_err;
 		break;
 	}
 	case BKW_MMAP_RUNNING: {