Skip to content

Commit c03c737

Browse files
Taemin Haavagin
authored andcommitted
zdtm/thread_different_uid_gid: remove the redundant check
line 131 checks if (ret >= 0). line 133 could be replaced by a simple else statement Signed-off-by: Taemin Ha <[email protected]> Signed-off-by: Andrei Vagin <[email protected]>
1 parent 06a3f13 commit c03c737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/zdtm/static/thread_different_uid_gid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
130130
ret = syscall(SYS_setresgid, maingroup, maingroup, maingroup);
131131
if (ret >= 0) {
132132
ret = syscall(SYS_setresuid, mainuser, mainuser, mainuser);
133-
} else if (ret < 0) {
133+
} else {
134134
pr_perror("Failed to drop privileges");
135135
exit(1);
136136
}

0 commit comments

Comments
 (0)