]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Remove the unnecessary cast.
authorkevlo <kevlo@FreeBSD.org>
Mon, 5 Oct 2015 05:24:16 +0000 (05:24 +0000)
committerkevlo <kevlo@FreeBSD.org>
Mon, 5 Oct 2015 05:24:16 +0000 (05:24 +0000)
sys/dev/ath/if_ath.c

index 770badd9175e21453277b62fea77cf721c45feda..8ba09585ebb29fea748229bc34722c76670b22c4 100644 (file)
@@ -1438,8 +1438,7 @@ ath_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit,
        int needbeacon, error;
        enum ieee80211_opmode ic_opmode;
 
-       avp = (struct ath_vap *) malloc(sizeof(struct ath_vap),
-           M_80211_VAP, M_WAITOK | M_ZERO);
+       avp = malloc(sizeof(struct ath_vap), M_80211_VAP, M_WAITOK | M_ZERO);
        needbeacon = 0;
        IEEE80211_ADDR_COPY(mac, mac0);