diff mbox series

tools: testing: Remove duplicate include of string.h

Message ID 20210323033007.283521-1-wanjiabing@vivo.com
State New
Headers show
Series tools: testing: Remove duplicate include of string.h | expand

Commit Message

Wan Jiabing March 23, 2021, 3:29 a.m. UTC
string.h has been included at line 15.So we remove the 
duplicate one at line 17.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 tools/testing/selftests/mincore/mincore_selftest.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Andrew Morton March 24, 2021, 11:05 p.m. UTC | #1
On Tue, 23 Mar 2021 11:29:56 +0800 Wan Jiabing <wanjiabing@vivo.com> wrote:

> string.h has been included at line 15.So we remove the 

> duplicate one at line 17.


Thanks.  But we already have
https://lkml.kernel.org/r/20210316073336.426255-1-zhang.yunkai@zte.com.cn.
diff mbox series

Patch

diff --git a/tools/testing/selftests/mincore/mincore_selftest.c b/tools/testing/selftests/mincore/mincore_selftest.c
index 5a1e85ff5d32..e54106643337 100644
--- a/tools/testing/selftests/mincore/mincore_selftest.c
+++ b/tools/testing/selftests/mincore/mincore_selftest.c
@@ -14,7 +14,6 @@ 
 #include <sys/mman.h>
 #include <string.h>
 #include <fcntl.h>
-#include <string.h>
 
 #include "../kselftest.h"
 #include "../kselftest_harness.h"