tools/testing/selftests/vm/userfaultfd.c: use swap() to make code cleaner
authorchiminghao <chi.minghao@zte.com.cn>
Fri, 14 Jan 2022 22:05:48 +0000 (14:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:27 +0000 (16:30 +0200)
commit2c769ed7137a75a8297936fb54e6ff1f56d3d0f1
tree8c6beaf481c2048746d2f38d8188102ea0135298
parent4e5aa1f4c2b489bc6f3ab5ca54747b18a847289d
tools/testing/selftests/vm/userfaultfd.c: use swap() to make code cleaner

Fix the following coccicheck REVIEW:

 tools/testing/selftests/vm/userfaultfd.c:1531:21-22:use swap() to make code cleaner

Link: https://lkml.kernel.org/r/20211124031632.35317-1-chi.minghao@zte.com.cn
Signed-off-by: chiminghao <chi.minghao@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/userfaultfd.c