Skip to contentSkip to conversation

selftests/timers: remove unneeded semicolon

PATCH In review Jiapeng Chong 2 participants 2 messages Mar 9, 2021 – Mar 26, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/timers: remove unneeded semicolon

Fix the following coccicheck warnings:

./tools/testing/selftests/timers/nanosleep.c:75:2-3: Unneeded semicolon

---
 tools/testing/selftests/timers/nanosleep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/nanosleep.c +1 -1
index 71b5441..433a096 100644
@@ -72,7 +72,7 @@ char *clockstring(int clockid)
 		return "CLOCK_BOOTTIME_ALARM";
 	case CLOCK_TAI:
 		return "CLOCK_TAI";
-	};
+	}
 	return "UNKNOWN_CLOCKID";
 }
 
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw
Quoted 16 lines · Jiapeng Chong

Fix the following coccicheck warnings:

./tools/testing/selftests/timers/nanosleep.c:75:2-3: Unneeded semicolon

---
  tools/testing/selftests/timers/nanosleep.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/nanosleep.c +0 -0
index 71b5441..433a096 100644

tools/testing/selftests/timers/nanosleep.c char *clockstring(int clockid) · line 78

Quoted 8 lines
tools/testing/selftests/timers/nanosleep.c +1 -1
@@ -72,7 +72,7 @@ char *clockstring(int clockid)
  		return "CLOCK_BOOTTIME_ALARM";
  	case CLOCK_TAI:
  		return "CLOCK_TAI";
-	};
+	}
  	return "UNKNOWN_CLOCKID";
  }
 

Can you send one single patch for all these timers fixes. All of these patches have the same subject line and it is becoming hard to tell them apart.

thanks,
-- Shuah