]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Remove unnecessary kmalloc casts in the jfs filesystem
authorJack Stone <jack@hawkeye.stone.uk.eu.org>
Tue, 31 Jul 2007 14:36:53 +0000 (09:36 -0500)
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>
Thu, 3 Jan 2008 19:11:53 +0000 (13:11 -0600)
Signed-off-by: Jack Stone <jack@hawkeye.stone.uk.eu.org>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
fs/jfs/jfs_dtree.c

index df25ecc418af0c7a3e06932255853312eb7b2e84..97c66f913393d94bfae4a73b5f9ac1c6ba5eee9c 100644 (file)
@@ -592,9 +592,7 @@ int dtSearch(struct inode *ip, struct component_name * key, ino_t * data,
        struct component_name ciKey;
        struct super_block *sb = ip->i_sb;
 
-       ciKey.name =
-           (wchar_t *) kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t),
-                               GFP_NOFS);
+       ciKey.name = kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t), GFP_NOFS);
        if (ciKey.name == 0) {
                rc = -ENOMEM;
                goto dtSearch_Exit2;
@@ -957,9 +955,7 @@ static int dtSplitUp(tid_t tid,
        smp = split->mp;
        sp = DT_PAGE(ip, smp);
 
-       key.name =
-           (wchar_t *) kmalloc((JFS_NAME_MAX + 2) * sizeof(wchar_t),
-                               GFP_NOFS);
+       key.name = kmalloc((JFS_NAME_MAX + 2) * sizeof(wchar_t), GFP_NOFS);
        if (key.name == 0) {
                DT_PUTPAGE(smp);
                rc = -ENOMEM;