Skip to contentSkip to conversation

tests: Remove redundant assignment

PATCH Applied Fam Zheng 3 participants 3 messages May 5, 2017

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 tests: Remove redundant assignment

---
 tests/postcopy-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/postcopy-test.c +1 -1
index de35a18..e86f876 100644
@@ -41,7 +41,7 @@ static bool ufd_version_check(void)
     struct uffdio_api api_struct;
     uint64_t ioctl_mask;
 
-    int ufd = ufd = syscall(__NR_userfaultfd, O_CLOEXEC);
+    int ufd = syscall(__NR_userfaultfd, O_CLOEXEC);
 
     if (ufd == -1) {
         g_test_message("Skipping test: userfaultfd not available");
Signature · 1 line
2.9.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Fam Zheng
---
 tests/postcopy-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
tests/postcopy-test.c +1 -1
index de35a18..e86f876 100644
@@ -41,7 +41,7 @@ static bool ufd_version_check(void)
     struct uffdio_api api_struct;
     uint64_t ioctl_mask;
 
-    int ufd = ufd = syscall(__NR_userfaultfd, O_CLOEXEC);
+    int ufd = syscall(__NR_userfaultfd, O_CLOEXEC);
 
     if (ufd == -1) {
         g_test_message("Skipping test: userfaultfd not available");
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org