diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-14 02:28:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:30 -0400 |
commit | 9680e8a391078a2bfa099b2c59542a6916a023ed (patch) | |
tree | 23167a05d19e72826bd35c661bd702b463294789 /drivers/net/wireless/ath/ath9k/main.c | |
parent | e3d01bfc3ea4f17c9e91bb930f10062efb0c86eb (diff) |
ath9k: remove driver ASSERT, just use BUG_ON()
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index e9aac3cbd4de..0d8977341b2c 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -2030,7 +2030,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | |||
2030 | if ((sizeof(struct ath_desc) % 4) != 0) { | 2030 | if ((sizeof(struct ath_desc) % 4) != 0) { |
2031 | ath_print(common, ATH_DBG_FATAL, | 2031 | ath_print(common, ATH_DBG_FATAL, |
2032 | "ath_desc not DWORD aligned\n"); | 2032 | "ath_desc not DWORD aligned\n"); |
2033 | ASSERT((sizeof(struct ath_desc) % 4) == 0); | 2033 | BUG_ON((sizeof(struct ath_desc) % 4) != 0); |
2034 | error = -ENOMEM; | 2034 | error = -ENOMEM; |
2035 | goto fail; | 2035 | goto fail; |
2036 | } | 2036 | } |
@@ -2088,7 +2088,7 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | |||
2088 | * descriptor fetch. | 2088 | * descriptor fetch. |
2089 | */ | 2089 | */ |
2090 | while (ATH_DESC_4KB_BOUND_CHECK(bf->bf_daddr)) { | 2090 | while (ATH_DESC_4KB_BOUND_CHECK(bf->bf_daddr)) { |
2091 | ASSERT((caddr_t) bf->bf_desc < | 2091 | BUG_ON((caddr_t) bf->bf_desc >= |
2092 | ((caddr_t) dd->dd_desc + | 2092 | ((caddr_t) dd->dd_desc + |
2093 | dd->dd_desc_len)); | 2093 | dd->dd_desc_len)); |
2094 | 2094 | ||