X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=lib%2Ftest_vmalloc.c;fp=lib%2Ftest_vmalloc.c;h=cf41fd6df42a08563175d558df645fff377e2e10;hb=34b46efd6ec6a6f2d6a57be4216b820c879a0030;hp=e14993bc84d2d91c6064a0c9ff58fef839457ea2;hpb=c00b6b9610991c042ff4c3153daaa3ea8522c210;p=linux-2.6-microblaze.git diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index e14993bc84d2..cf41fd6df42a 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c @@ -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 n) j = rnd % i; /* Swap indexes. */ - x = arr[i]; - arr[i] = arr[j]; - arr[j] = x; + swap(arr[i], arr[j]); } }