From 6281bc02a42de874ac2319dd5c0a9ee0d276c49e Mon Sep 17 00:00:00 2001 From: kevlo Date: Mon, 5 Oct 2015 05:24:16 +0000 Subject: [PATCH] Remove the unnecessary cast. --- sys/dev/ath/if_ath.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 770badd9175e..8ba09585ebb2 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -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); -- 2.39.5