svn commit: r288689 - head/sys/dev/ath

Kevin Lo kevlo at FreeBSD.org
Mon Oct 5 05:24:17 UTC 2015


Author: kevlo
Date: Mon Oct  5 05:24:16 2015
New Revision: 288689
URL: https://svnweb.freebsd.org/changeset/base/288689

Log:
  Remove the unnecessary cast.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c	Mon Oct  5 04:12:26 2015	(r288688)
+++ head/sys/dev/ath/if_ath.c	Mon Oct  5 05:24:16 2015	(r288689)
@@ -1438,8 +1438,7 @@ ath_vap_create(struct ieee80211com *ic, 
 	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);
 


More information about the svn-src-head mailing list