[PATCH][5/5] cifs: cifsfs.c cleanup - remove redundant casts

From: Jesper Juhl
Date: Fri Mar 25 2005 - 12:36:26 EST


Remove two redundant casts.

Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>


--- linux-2.6.12-rc1-mm3/fs/cifs/cifsfs.c.with_patch4 2005-03-25 18:03:49.000000000 +0100
+++ linux-2.6.12-rc1-mm3/fs/cifs/cifsfs.c 2005-03-25 18:10:55.000000000 +0100
@@ -233,9 +233,7 @@ mempool_t *cifs_mid_poolp;
static struct inode *cifs_alloc_inode(struct super_block *sb)
{
struct cifsInodeInfo *cifs_inode;
- cifs_inode =
- (struct cifsInodeInfo *)kmem_cache_alloc(cifs_inode_cachep,
- SLAB_KERNEL);
+ cifs_inode = kmem_cache_alloc(cifs_inode_cachep, SLAB_KERNEL);
if (!cifs_inode)
return NULL;
cifs_inode->cifsAttrs = 0x20; /* default */
@@ -595,7 +593,7 @@ struct file_operations cifs_dir_ops = {
static void cifs_init_once(void *inode, kmem_cache_t *cachep,
unsigned long flags)
{
- struct cifsInodeInfo *cifsi = (struct cifsInodeInfo *)inode;
+ struct cifsInodeInfo *cifsi = inode;

if ((flags & (SLAB_CTOR_VERIFY | SLAB_CTOR_CONSTRUCTOR)) ==
SLAB_CTOR_CONSTRUCTOR) {
-
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/