Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d55354f authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

net/ipv6/mcast.c: Remove unnecessary kmalloc casts

parent 3ed37a6f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;