util: Don't cast returns from malloc()
[openafs.git] / src / util / fileutil.c
index 509d728..fcd6f58 100644 (file)
@@ -102,7 +102,7 @@ BufioOpen(char *path, int oflag, int mode)
 {
     bufio_p bp;
 
-    bp = (bufio_p) malloc(sizeof(bufio_t));
+    bp = malloc(sizeof(bufio_t));
     if (bp == NULL) {
        return NULL;
     }