net/ipv6/mcast.c: Remove unnecessary kmalloc casts
authorJoe Perches <joe@perches.com>
Mon, 31 May 2010 17:23:22 +0000 (17:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Jun 2010 07:15:54 +0000 (00:15 -0700)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c

index 59f1881968c70aad15b0296cf6400c6b0b3e49cb..7b5fb43c227cacf38041aa84c413f4d459bfe8f2 100644 (file)
@@ -1995,8 +1995,7 @@ static int sf_setstate(struct ifmcaddr6 *pmc)
                                    &psf->sf_addr))
                                        break;
                        if (!dpsf) {
-                               dpsf = (struct ip6_sf_list *)
-                                       kmalloc(sizeof(*dpsf), GFP_ATOMIC);
+                               dpsf = kmalloc(sizeof(*dpsf), GFP_ATOMIC);
                                if (!dpsf)
                                        continue;
                                *dpsf = *psf;