Re: [PATCH 06/56] cifs: Remove void casts

From: Bert Wesarg
Date: Wed Apr 08 2009 - 07:33:55 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/cifs/transport.c | Â Â2 +-
> Â1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
> index 0ad3e2d..fb3bd00 100644
> --- a/fs/cifs/transport.c
> +++ b/fs/cifs/transport.c
> @@ -111,7 +111,7 @@ AllocOplockQEntry(struct inode *pinode, __u16 fid, struct cifsTconInfo *tcon)
> Â Â Â Â Â Â Â ÂcERROR(1, ("Null parms passed to AllocOplockQEntry"));
> Â Â Â Â Â Â Â Âreturn NULL;
> Â Â Â Â}
> - Â Â Â temp = (struct oplock_q_entry *) kmem_cache_alloc(cifs_oplock_cachep,
> + Â Â Â temp = kmem_cache_alloc(cifs_oplock_cachep,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â GFP_KERNEL);
^^^^^^^^^^^^
Again.

Bert
> Â Â Â Âif (temp == NULL)
> Â Â Â Â Â Â Â Âreturn temp;
> --
> 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/