]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/jfs/jfs_txnmgr.c
[PATCH] fs: Removing useless casts
[net-next-2.6.git] / fs / jfs / jfs_txnmgr.c
index efbb586bed4bcc25db3e8b270bae3720fe7d5ab1..3856efc399c11d7f28a58e24b21f7e9db05a0909 100644 (file)
@@ -282,7 +282,7 @@ int txInit(void)
        TxLockVHWM = (nTxLock * 8) / 10;
 
        size = sizeof(struct tblock) * nTxBlock;
-       TxBlock = (struct tblock *) vmalloc(size);
+       TxBlock = vmalloc(size);
        if (TxBlock == NULL)
                return -ENOMEM;
 
@@ -307,7 +307,7 @@ int txInit(void)
         * tlock id = 0 is reserved.
         */
        size = sizeof(struct tlock) * nTxLock;
-       TxLock = (struct tlock *) vmalloc(size);
+       TxLock = vmalloc(size);
        if (TxLock == NULL) {
                vfree(TxBlock);
                return -ENOMEM;