Skip to contentSkip to conversation

selftests:timers: remove unneeded semicolon

PATCH In review Jiapeng Chong 2 participants 4 messages Oct 17, 2024

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

PATCH 1/2 selftests:timers: remove unneeded semicolon

No functional modification involved.

./tools/testing/selftests/timers/nanosleep.c:63: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 252c6308c569..36f9b97f232a 100644
@@ -60,7 +60,7 @@ char *clockstring(int clockid)
 		return "CLOCK_BOOTTIME_ALARM";
 	case CLOCK_TAI:
 		return "CLOCK_TAI";
-	};
+	}
 	return "UNKNOWN_CLOCKID";
 }
 
Signature · 1 line
2.32.0.3.g01195cf9f
#1 lore raw

PATCH 2/2 selftests:timers: remove unneeded semicolon

No functional modification involved.

./tools/testing/selftests/timers/nsleep-lat.c:62:2-3: Unneeded semicolon.

---
 tools/testing/selftests/timers/nsleep-lat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/nsleep-lat.c +1 -1
index de23dc0c9f97..6f7f7d682439 100644
@@ -59,7 +59,7 @@ char *clockstring(int clockid)
 		return "CLOCK_BOOTTIME_ALARM";
 	case CLOCK_TAI:
 		return "CLOCK_TAI";
-	};
+	}
 	return "UNKNOWN_CLOCKID";
 }
 
Signature · 1 line
2.32.0.3.g01195cf9f
maintainer
#2 lore raw
Quoted 16 lines · Jiapeng Chong

No functional modification involved.

./tools/testing/selftests/timers/nsleep-lat.c:62:2-3: Unneeded semicolon.

---
  tools/testing/selftests/timers/nsleep-lat.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/timers/nsleep-lat.c +0 -0
index de23dc0c9f97..6f7f7d682439 100644

tools/testing/selftests/timers/nsleep-lat.c char *clockstring(int clockid) · line 65

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

This is the same change. same comment on this one too. I am working on deleting the duplicate code and there is no need to make these changes.

thanks,
-- Shuah

maintainer
#3 lore raw
In reply to Jiapeng Chong
Quoted 1 line · Jiapeng Chong

No functional modification involved.

Please include the report details in the change log

Quoted 15 lines

./tools/testing/selftests/timers/nanosleep.c:63: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 252c6308c569..36f9b97f232a 100644

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

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

thanks,
-- Shuah