lib-test_vmallocc-use-swap-to-make-code-cleaner.patch removed from -mm tree
The patch titled
Subject: lib/test_vmalloc.c: use swap() to make code cleaner
has been removed from the -mm tree. Its filename was
lib-test_vmallocc-use-swap-to-make-code-cleaner.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Changcheng Deng <[email protected]>
Subject: lib/test_vmalloc.c: use swap() to make code cleaner
Use swap() in order to make code cleaner. Issue found by coccinelle.
Signed-off-by Changcheng Deng <[email protected]>
Reported-by Zeal Robot <[email protected]>
Reviewed-by Uladzislau Rezki (Sony) <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
lib/test_vmalloc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
lib/test_vmalloc.c renamed from lib/test_vmalloc.c~lib-test_vmallocc-use-swap-to-make-code-cleaner +2 -4
@@ -393,7 +393,7 @@ static struct test_driver {static void shuffle_array (int *arr,int n) {unsigned int rnd; -int i, j, x; +int i, j;for (i = n -1 ; i >0 ; i--) {get_random_bytes (&rnd,sizeof (rnd));
@@ -402,9 +402,7 @@ static void shuffle_array(int *arr, int j = rnd % i;/* Swap indexes. */ - x = arr[i]; - arr[i] = arr[j]; - arr[j] = x; +swap (arr[i], arr[j]); } }
_
Patches currently in -mm which might be from [email protected] are