+ reiserfs-avoid-pointless-casts-in-alloc-codes.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: fs/reiserfs: remove unneeded cast
has been added to the -mm tree.  Its filename is
     reiserfs-avoid-pointless-casts-in-alloc-codes.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/reiserfs-avoid-pointless-casts-in-alloc-codes.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/reiserfs-avoid-pointless-casts-in-alloc-codes.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Firo Yang <firogm@xxxxxxxxx>
Subject: fs/reiserfs: remove unneeded cast

kmem_cache_alloc() returns void*.

Signed-off-by: Firo Yang <firogm@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/reiserfs/super.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff -puN fs/reiserfs/super.c~reiserfs-avoid-pointless-casts-in-alloc-codes fs/reiserfs/super.c
--- a/fs/reiserfs/super.c~reiserfs-avoid-pointless-casts-in-alloc-codes
+++ a/fs/reiserfs/super.c
@@ -588,8 +588,7 @@ static struct kmem_cache *reiserfs_inode
 static struct inode *reiserfs_alloc_inode(struct super_block *sb)
 {
 	struct reiserfs_inode_info *ei;
-	ei = (struct reiserfs_inode_info *)
-	    kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL);
+	ei = kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL);
 	if (!ei)
 		return NULL;
 	atomic_set(&ei->openers, 0);
_

Patches currently in -mm which might be from firogm@xxxxxxxxx are

efs-remove-unneeded-cast.patch
minix-no-need-to-cast-alloction-return-value-in-minix.patch
reiserfs-avoid-pointless-casts-in-alloc-codes.patch
adfs-remove-unneeded-cast.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux