From a7d42b99065f359a89bff6052a6c4578bf848310 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 17 Nov 2008 04:42:22 +0000 Subject: Remove useless variable and function argument git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@76 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- linear.c | 36 ++++++++---------------------------- 1 file changed, 8 insertions(+), 28 deletions(-) diff --git a/linear.c b/linear.c index 4495f51..f7aeecc 100644 --- a/linear.c +++ b/linear.c @@ -48,7 +48,7 @@ static clock_t DoLUIteration(double *a, double *b, double *abase, double *bbase, unsigned long num_arrays); static void build_problem( double a[][LUARRAYCOLS], - int n, double b[LUARRAYROWS]); + double b[LUARRAYROWS]); static int ludcmp(double a[][LUARRAYCOLS], int n, int indx[], int *d); static void lubksb(double a[][LUARRAYCOLS], @@ -73,7 +73,6 @@ DoLU(void) double* abase = NULL; double* bbase = NULL; LUdblptr ptra; - int n; static int num_arrays = 0; static bool is_adjusted = false; @@ -85,7 +84,6 @@ DoLU(void) */ a = malloc(sizeof(double) * LUARRAYCOLS * LUARRAYROWS); b = malloc(sizeof(double) * LUARRAYROWS); - n=LUARRAYROWS; /* ** We need to allocate a temp vector that is used by the LU @@ -98,7 +96,7 @@ DoLU(void) ** Build a problem to be solved. */ ptra.ptrs.p=a; /* Gotta coerce linear array to 2D array */ - build_problem(*ptra.ptrs.ap,n,b); + build_problem(*ptra.ptrs.ap, b); /* ** Now that we have a problem built, see if we need to do @@ -238,7 +236,6 @@ for(i=0;i