diff options
author | Panagiotis Issaris <takis@issaris.org> | 2006-09-27 04:49:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-27 11:26:10 -0400 |
commit | f52720ca5f48574e347dff35ffe6b389ace61537 (patch) | |
tree | 7efc8ec6bad32b98e406a5c553149d57e46bd07e /fs/jfs/jfs_txnmgr.c | |
parent | f8314dc60ccba7e41f425048c4160dc7f63377d5 (diff) |
[PATCH] fs: Removing useless casts
* Removing useless casts
* Removing useless wrapper
* Conversion from kmalloc+memset to kzalloc
Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Acked-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jfs/jfs_txnmgr.c')
-rw-r--r-- | fs/jfs/jfs_txnmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index efbb586bed4b..3856efc399c1 100644 --- a/fs/jfs/jfs_txnmgr.c +++ b/fs/jfs/jfs_txnmgr.c | |||
@@ -282,7 +282,7 @@ int txInit(void) | |||
282 | TxLockVHWM = (nTxLock * 8) / 10; | 282 | TxLockVHWM = (nTxLock * 8) / 10; |
283 | 283 | ||
284 | size = sizeof(struct tblock) * nTxBlock; | 284 | size = sizeof(struct tblock) * nTxBlock; |
285 | TxBlock = (struct tblock *) vmalloc(size); | 285 | TxBlock = vmalloc(size); |
286 | if (TxBlock == NULL) | 286 | if (TxBlock == NULL) |
287 | return -ENOMEM; | 287 | return -ENOMEM; |
288 | 288 | ||
@@ -307,7 +307,7 @@ int txInit(void) | |||
307 | * tlock id = 0 is reserved. | 307 | * tlock id = 0 is reserved. |
308 | */ | 308 | */ |
309 | size = sizeof(struct tlock) * nTxLock; | 309 | size = sizeof(struct tlock) * nTxLock; |
310 | TxLock = (struct tlock *) vmalloc(size); | 310 | TxLock = vmalloc(size); |
311 | if (TxLock == NULL) { | 311 | if (TxLock == NULL) { |
312 | vfree(TxBlock); | 312 | vfree(TxBlock); |
313 | return -ENOMEM; | 313 | return -ENOMEM; |