lkml.org 
[lkml]   [2007]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Patch 16/16] Remove unnecessary kmalloc casts in the jfs filesystem.
From
Date
Looks good.  I'll push it through the jfs git tree.

Thanks,
Shaggy

On Tue, 2007-07-31 at 13:53 +0100, jack@hawkeye.stone.uk.eu.org wrote:

> Signed-off-by: Jack Stone <jack@hawkeye.stone.uk.eu.org>
>
> CC: David Kleikamp <shaggy@austin.ibm.com>
> ---
> fs/jfs/jfs_dtree.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> Index: b/fs/jfs/jfs_dtree.c
> ===================================================================
> --- a/fs/jfs/jfs_dtree.c
> +++ b/fs/jfs/jfs_dtree.c
> @@ -592,9 +592,7 @@ int dtSearch(struct inode *ip, struct co
> 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;
>
--
David Kleikamp
IBM Linux Technology Center

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-31 15:19    [W:2.041 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site