Re: [PATCH 36/56] ocfs2: Remove void casts

From: Bert Wesarg
Date: Wed Apr 08 2009 - 08:20:12 EST


On Wed, Apr 8, 2009 at 13:22, Jack Stone <jwjstone@xxxxxxxxxxx> wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@xxxxxxxxxxx>
> ---
> Âfs/ocfs2/dlm/dlmmaster.c | Â 10 ++++------
> Â1 files changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/fs/ocfs2/dlm/dlmmaster.c b/fs/ocfs2/dlm/dlmmaster.c
> index f8b653f..e4c2f5b 100644
> --- a/fs/ocfs2/dlm/dlmmaster.c
> +++ b/fs/ocfs2/dlm/dlmmaster.c
> @@ -2455,7 +2453,7 @@ static int dlm_migrate_lockres(struct dlm_ctxt *dlm,
> Â Â Â Â Â Â Â Âgoto leave;
> Â Â Â Â}
>
> - Â Â Â mle = (struct dlm_master_list_entry *) kmem_cache_alloc(dlm_mle_cache,
> + Â Â Â mle = kmem_cache_alloc(dlm_mle_cache,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂGFP_NOFS);
Flag.

> Â Â Â Âif (!mle) {
> Â Â Â Â Â Â Â Âmlog_errno(ret);
> @@ -3036,7 +3034,7 @@ int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data,
> Â Â Â Âhash = dlm_lockid_hash(name, namelen);
>
> Â Â Â Â/* preallocate.. if this fails, abort */
> - Â Â Â mle = (struct dlm_master_list_entry *) kmem_cache_alloc(dlm_mle_cache,
> + Â Â Â mle = kmem_cache_alloc(dlm_mle_cache,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â GFP_NOFS);
Flag.

>
> Â Â Â Âif (!mle) {
> --
Bert
--
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/