dir: remove unnecessary cast from malloc

Change-Id: I2b91c9ad2983ba08e5e1bc49c3790e018951be31
Reviewed-on: http://gerrit.openafs.org/5464
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
Jeffrey Altman 2011-09-18 14:18:24 -04:00 committed by Derrick Brashear
parent 552d59186b
commit 4d4cd3cd08

View File

@ -121,9 +121,9 @@ DInit(int abuffers)
Lock_Init(&afs_bufferLock);
/* Align each element of Buffers on a doubleword boundary */
tsize = (sizeof(struct buffer) + 7) & ~7;
tp = (char *)malloc(abuffers * tsize);
Buffers = (struct buffer **)malloc(abuffers * sizeof(struct buffer *));
BufferData = (char *)malloc(abuffers * BUFFER_PAGE_SIZE);
tp = malloc(abuffers * tsize);
Buffers = malloc(abuffers * sizeof(struct buffer *));
BufferData = malloc(abuffers * BUFFER_PAGE_SIZE);
timecounter = 0;
LastBuffer = (struct buffer *)tp;
nbuffers = abuffers;