]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/nolibc: drop unnecessary 'mode' argument to open()
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 19 Apr 2026 15:29:03 +0000 (17:29 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 27 Apr 2026 17:25:25 +0000 (19:25 +0200)
The mode is unnecessary here, drop it.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260419-nolibc-open-mode-v1-1-8dc5a960daa7@weissschuh.net
tools/testing/selftests/nolibc/nolibc-test.c

index eede2887acf6ee6ceb2de1708aa4efd490b98435..598897141edf67a70652fd9f26247a06b3ec9358 100644 (file)
@@ -798,7 +798,7 @@ int test_getdents64(const char *dir)
        int fd, ret;
        int err;
 
-       ret = fd = open(dir, O_RDONLY | O_DIRECTORY, 0);
+       ret = fd = open(dir, O_RDONLY | O_DIRECTORY);
        if (ret < 0)
                return ret;