* Adjust for repository structure adjustments made in r2721
[madwifi/.git] / regression / ccmp / test_ccmp.c
index 3e062478e89426abf869e1f117744dbad66ae9cb..909bb2859e576e0e0bb9effe8d41663920ec76b4 100644 (file)
@@ -713,7 +713,6 @@ MODULE_PARM_DESC(debug, "Enable IEEE80211_MSG_CRYPTO");
 static int __init
 init_crypto_ccmp_test(void)
 {
-#define        N(a)    (sizeof(a)/sizeof(a[0]))
        struct ieee80211com ic;
        struct ieee80211vap vap;
        int i, pass, total;
@@ -728,7 +727,7 @@ init_crypto_ccmp_test(void)
 
        pass = 0;
        total = 0;
-       for (i = 0; i < N(ccmptests); i++)
+       for (i = 0; i < ARRAY_SIZE(ccmptests); i++)
                if (tests & (1 << i)) {
                        total++;
                        pass += runtest(&vap, &ccmptests[i]);
@@ -737,7 +736,6 @@ init_crypto_ccmp_test(void)
        ieee80211_crypto_vdetach(&vap);
        ieee80211_crypto_detach(&ic);
        return (pass == total ? 0 : -ENXIO);
-#undef N
 }
 module_init(init_crypto_ccmp_test);