fstests: remove duplicated renameat2 system call number for i386
diff mbox series

Message ID 6d0c1a12-b4b2-cb35-1150-001ffa83a5db@gmail.com
State New
Headers show
Series
  • fstests: remove duplicated renameat2 system call number for i386
Related show

Commit Message

kaixuxia Oct. 11, 2019, 7:03 a.m. UTC
Remove duplicated renameat2 system call number for i386.

Signed-off-by: kaixuxia <kaixuxia@tencent.com>
---
 src/renameat2.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Christoph Hellwig Oct. 11, 2019, 1:06 p.m. UTC | #1
On Fri, Oct 11, 2019 at 03:03:24PM +0800, kaixuxia wrote:
> Remove duplicated renameat2 system call number for i386.
> 
> Signed-off-by: kaixuxia <kaixuxia@tencent.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>

Patch
diff mbox series

diff --git a/src/renameat2.c b/src/renameat2.c
index c59ce65..8f712a4 100644
--- a/src/renameat2.c
+++ b/src/renameat2.c
@@ -18,10 +18,6 @@ 
 #define SYS_renameat2 353
 #endif
 
-#if !defined(SYS_renameat2) && defined(__i386__)
-#define SYS_renameat2 353
-#endif
-
 static int renameat2(int dfd1, const char *path1,
 		     int dfd2, const char *path2,
 		     unsigned int flags)