diff mbox series

open02.c: remove redundant headers and a typo fix

Message ID 20220710152717.23849-1-akumar@suse.de
State Accepted
Headers show
Series open02.c: remove redundant headers and a typo fix | expand

Commit Message

Avinesh Kumar July 10, 2022, 3:27 p.m. UTC
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
 testcases/kernel/syscalls/open/open02.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Comments

Petr Vorel July 11, 2022, 6:13 a.m. UTC | #1
Hi Avinesh,

thanks, merged!

Kind regards,
Petr
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/open/open02.c b/testcases/kernel/syscalls/open/open02.c
index 67bf423ae..bc7d04797 100644
--- a/testcases/kernel/syscalls/open/open02.c
+++ b/testcases/kernel/syscalls/open/open02.c
@@ -13,11 +13,6 @@ 
 
 #define _GNU_SOURCE
 
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <fcntl.h>
 #include <pwd.h>
 #include "tst_test.h"
 
@@ -31,7 +26,7 @@  static struct tcase {
 	const char *desc;
 } tcases[] = {
 	{TEST_FILE, O_RDWR, ENOENT, "new file without O_CREAT"},
-	{TEST_FILE2, O_RDONLY | O_NOATIME, EPERM, "unpriviledget O_RDONLY | O_NOATIME"},
+	{TEST_FILE2, O_RDONLY | O_NOATIME, EPERM, "unprivileged O_RDONLY | O_NOATIME"},
 };
 
 void setup(void)