ath9k: remove driver ASSERT, just use BUG_ON()
[linux-2.6.git] / drivers / net / wireless / ath / ath9k / main.c
index e9aac3cbd4de0994cf0db03074523f2fe0b711e6..0d8977341b2c18e2130ea10dc5b60a704decabd1 100644 (file)
@@ -2030,7 +2030,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
        if ((sizeof(struct ath_desc) % 4) != 0) {
                ath_print(common, ATH_DBG_FATAL,
                          "ath_desc not DWORD aligned\n");
-               ASSERT((sizeof(struct ath_desc) % 4) == 0);
+               BUG_ON((sizeof(struct ath_desc) % 4) != 0);
                error = -ENOMEM;
                goto fail;
        }
@@ -2088,7 +2088,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
                         * descriptor fetch.
                         */
                        while (ATH_DESC_4KB_BOUND_CHECK(bf->bf_daddr)) {
-                               ASSERT((caddr_t) bf->bf_desc <
+                               BUG_ON((caddr_t) bf->bf_desc >=
                                       ((caddr_t) dd->dd_desc +
                                        dd->dd_desc_len));