summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-05-05 20:41:10 +0000
committerkmacy <kmacy@FreeBSD.org>2008-05-05 20:41:10 +0000
commita809f1f760b46bcb9e8d9efc3fb548de5cd24c33 (patch)
tree257e198a70b4e73e1df0adbaa501e9cd2b08800f /sys
parent667ab9410a7af298d108e57f37cec528af175601 (diff)
downloadFreeBSD-src-a809f1f760b46bcb9e8d9efc3fb548de5cd24c33.zip
FreeBSD-src-a809f1f760b46bcb9e8d9efc3fb548de5cd24c33.tar.gz
LINT fixes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c2
-rw-r--r--sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c
index c6836d5..93a9e89 100644
--- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c
+++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c
@@ -259,7 +259,7 @@ int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
do {
err = iwch_poll_cq_one(rhp, chp, wc + npolled);
#ifdef DEBUG
- BUG_ON(++i > 1000);
+ PANIC_IF(++i > 1000);
#endif
} while (err == -EAGAIN);
if (err <= 0)
diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c
index 4cd7ca3..8b52119 100644
--- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c
+++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c
@@ -159,13 +159,13 @@ void cxio_dump_pbl(struct cxio_rdev *rdev, uint32_t pbl_addr, uint32_t len, u8 s
void cxio_dump_wqe(union t3_wr *wqe)
{
uint64_t *data = (uint64_t *)wqe;
- uint32_t size = (uint32_t)(be64_to_cpu(*data) & 0xff);
+ uint32_t size = (uint32_t)(be64toh(*data) & 0xff);
if (size == 0)
size = 8;
while (size > 0) {
CTR2(KTR_IW_CXGB, "WQE %p: %016llx", data,
- (unsigned long long) be64_to_cpu(*data));
+ (unsigned long long) be64toh(*data));
size--;
data++;
}
@@ -178,7 +178,7 @@ void cxio_dump_wce(struct t3_cqe *wce)
while (size > 0) {
CTR2(KTR_IW_CXGB, "WCE %p: %016llx", data,
- (unsigned long long) be64_to_cpu(*data));
+ (unsigned long long) be64toh(*data));
size -= 8;
data++;
}
OpenPOWER on IntegriCloud