mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
LINT fixes
This commit is contained in:
parent
7df01cd583
commit
713edd3a06
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178796
@ -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)
|
||||
|
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user