Re: [PATCH 04/56] befs: Remove void casts

From: Bert Wesarg
Date: Wed Apr 08 2009 - 07:33:32 EST


On Wed, Apr 8, 2009 at 13:21, Jack Stone <jwjstone@xxxxxxxxxxx> wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@xxxxxxxxxxx>
> ---
> Âfs/befs/linuxvfs.c | Â Â2 +-
> Â1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
> index 76afd0d..cfd9698 100644
> --- a/fs/befs/linuxvfs.c
> +++ b/fs/befs/linuxvfs.c
> @@ -277,7 +277,7 @@ static struct inode *
> Âbefs_alloc_inode(struct super_block *sb)
> Â{
> Â Â Â Â struct befs_inode_info *bi;
> - Â Â Â Âbi = (struct befs_inode_info *)kmem_cache_alloc(befs_inode_cachep,
> + Â Â Â Âbi = kmem_cache_alloc(befs_inode_cachep,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂGFP_KERNEL);
^^^^^^^^^^^^
This can now be one line up.

Bert
> Â Â Â Â if (!bi)
> Â Â Â Â Â Â Â Â return NULL;
> --
> 1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/