fs/ftest{04,08}: Remove unused allocated buffer.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/testcases/kernel/fs/ftest/ftest04.c b/testcases/kernel/fs/ftest/ftest04.c
index be3f149..616de78 100644
--- a/testcases/kernel/fs/ftest/ftest04.c
+++ b/testcases/kernel/fs/ftest/ftest04.c
@@ -228,7 +228,7 @@
 
 static void dotest(int testers, int me, int fd)
 {
-	char *bits, *buf;
+	char *bits;
 	char val, val0;
 	int count, collide, chunk, whenmisc, xfr, i;
 
@@ -249,11 +249,6 @@
 		tst_exit();
 	}
 
-	if ((buf = (malloc(csize))) == NULL) {
-		tst_resm(TBROK, "\tmalloc failed(buf)");
-		tst_exit();
-	}
-
 	/*Allocate memory for the iovec buffers and init the iovec arrays
 	 */
 	r_ioveclen = w_ioveclen = csize / MAXIOVCNT;
diff --git a/testcases/kernel/fs/ftest/ftest08.c b/testcases/kernel/fs/ftest/ftest08.c
index 00c292e..adf5773 100644
--- a/testcases/kernel/fs/ftest/ftest08.c
+++ b/testcases/kernel/fs/ftest/ftest08.c
@@ -234,7 +234,7 @@
 
 static void dotest(int testers, int me, int fd)
 {
-	char *bits, *buf;
+	char *bits;
 	char val, val0;
 	int count, collide, chunk, whenmisc, xfr, i;
 
@@ -255,11 +255,6 @@
 		tst_exit();
 	}
 
-	if ((buf = (malloc(csize))) == NULL) {
-		tst_resm(TBROK, "\tmalloc failed(buf)");
-		tst_exit();
-	}
-
 	/* Allocate memory for the iovec buffers and init the iovec arrays */
 	r_ioveclen = w_ioveclen = csize / MAXIOVCNT;