aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Stone <jack@hawkeye.stone.uk.eu.org>2007-07-31 10:36:53 -0400
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2008-01-03 14:11:53 -0500
commit1eb3a711d6a1c8a4697a2e89d09048353b8aefd3 (patch)
tree889f19f143d9bde1062b29190f836d0389d591f8
parent54af6233d1cb84cdfaa6ea44ea0db0bcf518baac (diff)
Remove unnecessary kmalloc casts in the jfs filesystem
Signed-off-by: Jack Stone <jack@hawkeye.stone.uk.eu.org> Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
-rw-r--r--fs/jfs/jfs_dtree.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c
index df25ecc418af..97c66f913393 100644
--- a/fs/jfs/jfs_dtree.c
+++ b/fs/jfs/jfs_dtree.c
@@ -592,9 +592,7 @@ int dtSearch(struct inode *ip, struct component_name * key, ino_t * data,
592 struct component_name ciKey; 592 struct component_name ciKey;
593 struct super_block *sb = ip->i_sb; 593 struct super_block *sb = ip->i_sb;
594 594
595 ciKey.name = 595 ciKey.name = kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t), GFP_NOFS);
596 (wchar_t *) kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t),
597 GFP_NOFS);
598 if (ciKey.name == 0) { 596 if (ciKey.name == 0) {
599 rc = -ENOMEM; 597 rc = -ENOMEM;
600 goto dtSearch_Exit2; 598 goto dtSearch_Exit2;
@@ -957,9 +955,7 @@ static int dtSplitUp(tid_t tid,
957 smp = split->mp; 955 smp = split->mp;
958 sp = DT_PAGE(ip, smp); 956 sp = DT_PAGE(ip, smp);
959 957
960 key.name = 958 key.name = kmalloc((JFS_NAME_MAX + 2) * sizeof(wchar_t), GFP_NOFS);
961 (wchar_t *) kmalloc((JFS_NAME_MAX + 2) * sizeof(wchar_t),
962 GFP_NOFS);
963 if (key.name == 0) { 959 if (key.name == 0) {
964 DT_PUTPAGE(smp); 960 DT_PUTPAGE(smp);
965 rc = -ENOMEM; 961 rc = -ENOMEM;