Skip to contentSkip to conversation

rt-tests: cyclicdeadline.c: Remove dead code

PATCH New John Kacur 1 participant 1 message Mar 4, 2021

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 rt-tests: cyclicdeadline.c: Remove dead code

In cyclicdeadline there is some unreachable code that was there from the beginning. By inspection it looks like this change was the original intention.

---
 src/sched_deadline/cyclicdeadline.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
src/sched_deadline/cyclicdeadline.c +1 -3
index ed3c960d9916..33bac8cda898 100644
@@ -560,13 +560,11 @@ static void destroy_cpuset(const char *name, int print)
 	sleep(1);
 	ret = rmdir(path);
 	if (ret < 0) {
-		if (retry++ < 5)
-			goto again;
-		err_msg_n(errno, "Failed to remove %s\n", path);
 		if (retry++ < 5) {
 			err_msg("Trying again\n");
 			goto again;
 		}
+		err_msg_n(errno, "Failed to remove %s\n", path);
 	}
 }
 
Signature · 1 line
2.26.2