[PATCH 1/2] Remove unnecessary kmalloc casts in the jfs filesystem
[email protected] Fri, 31 Aug 2007 12:59:30 -0500 (CDT)
| Newsgroups | gmane.comp.file-systems.jfs.patches |
|---|---|
| Message-ID | <[email protected]> |
Remove unnecessary kmalloc casts in the jfs filesystem Signed-off-by: Jack Stone <[email protected]> Signed-off-by: Dave Kleikamp <[email protected]> --- commit 85e65c39f050a4964d0b943304bd896ff5375988 tree 9a80e43717014c919331fa1fb43ab8326fa13e44 parent 6a302358d87fedaf7bda12b8e909265ebf1ce674 author Jack Stone <[email protected]> Tue, 31 Jul 2007 09:36:53 -0500 committer Dave Kleikamp <[email protected]> Tue, 31 Jul 2007 09:36:53 -0500 fs/jfs/jfs_dtree.c | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c index c14ba3c..3f15b36 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, 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; ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/