]> git.baikalelectronics.ru Git - kernel.git/commit
lib/test_vmalloc.c: use swap() to make code cleaner
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Fri, 5 Nov 2021 20:39:56 +0000 (13:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:37 +0000 (13:30 -0700)
commit3ac9746a380a244ef2e7a9608b6287844c6bab42
tree008f0c70c28dd13f111f9e194d32e09392ceb502
parent126bce5bdce2233705dfe98f62ec41c695d49f04
lib/test_vmalloc.c: use swap() to make code cleaner

Use swap() in order to make code cleaner.  Issue found by coccinelle.

Link: https://lkml.kernel.org/r/20211028111443.15744-1-deng.changcheng@zte.com.cn
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/test_vmalloc.c