Remove useless casts of kmalloc() and kzalloc()

Found by coccinelle.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4152 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2011-08-03 00:18:57 +00:00
parent 1c37948b92
commit c6569661e4
2 changed files with 4 additions and 5 deletions

View File

@ -1701,9 +1701,8 @@ void ath_rp_init(struct ath_softc *sc)
ath_rp_clear(sc);
sc->sc_rp = (struct ath_rp *)kzalloc(
sizeof(struct ath_rp) *
ATH_RADAR_PULSE_NR, GFP_KERNEL);
sc->sc_rp = kzalloc(sizeof(struct ath_rp) * ATH_RADAR_PULSE_NR,
GFP_KERNEL);
if (sc->sc_rp == NULL)
return;

View File

@ -292,7 +292,7 @@ ifmedia_ioctl(struct net_device *dev, struct ifreq *ifr,
return (-EINVAL);
if (ifmr->ifm_count != 0) {
kptr = (int *)kmalloc(ifmr->ifm_count * sizeof(int),
kptr = kmalloc(ifmr->ifm_count * sizeof(int),
GFP_KERNEL);
if (kptr == NULL)