Found by coccinelle.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4152
0192ed92-7a03-0410-a25b-
9323aeb14dbd
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;
return (-EINVAL);
if (ifmr->ifm_count != 0) {
- kptr = (int *)kmalloc(ifmr->ifm_count * sizeof(int),
- GFP_KERNEL);
+ kptr = kmalloc(ifmr->ifm_count * sizeof(int),
+ GFP_KERNEL);
if (kptr == NULL)
return (-ENOMEM);