diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-08-25 14:24:33 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 18:22:31 -0400 |
commit | b55f4f06c834a67f949a5219c5f97ffafa240989 (patch) | |
tree | f7fb3095a8e7e09370036ad9d669925897d5f0c4 /drivers/infiniband/hw/ipath/ipath_verbs.c | |
parent | 34b2aafea38efdf02cd8107a6e1057e2a297c447 (diff) |
IB/ipath: simplify debugging code after ipath_core and ib_ipath merger
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_verbs.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_verbs.c b/drivers/infiniband/hw/ipath/ipath_verbs.c index 3c47620e988..1776330914e 100644 --- a/drivers/infiniband/hw/ipath/ipath_verbs.c +++ b/drivers/infiniband/hw/ipath/ipath_verbs.c | |||
@@ -50,10 +50,6 @@ module_param_named(lkey_table_size, ib_ipath_lkey_table_size, uint, | |||
50 | MODULE_PARM_DESC(lkey_table_size, | 50 | MODULE_PARM_DESC(lkey_table_size, |
51 | "LKEY table size in bits (2^n, 1 <= n <= 23)"); | 51 | "LKEY table size in bits (2^n, 1 <= n <= 23)"); |
52 | 52 | ||
53 | unsigned int ib_ipath_debug; /* debug mask */ | ||
54 | module_param_named(debug, ib_ipath_debug, uint, S_IWUSR | S_IRUGO); | ||
55 | MODULE_PARM_DESC(debug, "Verbs debug mask"); | ||
56 | |||
57 | static unsigned int ib_ipath_max_pds = 0xFFFF; | 53 | static unsigned int ib_ipath_max_pds = 0xFFFF; |
58 | module_param_named(max_pds, ib_ipath_max_pds, uint, S_IWUSR | S_IRUGO); | 54 | module_param_named(max_pds, ib_ipath_max_pds, uint, S_IWUSR | S_IRUGO); |
59 | MODULE_PARM_DESC(max_pds, | 55 | MODULE_PARM_DESC(max_pds, |
@@ -1598,8 +1594,7 @@ err_lk: | |||
1598 | kfree(idev->qp_table.table); | 1594 | kfree(idev->qp_table.table); |
1599 | err_qp: | 1595 | err_qp: |
1600 | ib_dealloc_device(dev); | 1596 | ib_dealloc_device(dev); |
1601 | _VERBS_ERROR("ib_ipath%d cannot register verbs (%d)!\n", | 1597 | ipath_dev_err(dd, "cannot register verbs: %d!\n", -ret); |
1602 | dd->ipath_unit, -ret); | ||
1603 | idev = NULL; | 1598 | idev = NULL; |
1604 | 1599 | ||
1605 | bail: | 1600 | bail: |
@@ -1618,17 +1613,13 @@ void ipath_unregister_ib_device(struct ipath_ibdev *dev) | |||
1618 | if (!list_empty(&dev->pending[0]) || | 1613 | if (!list_empty(&dev->pending[0]) || |
1619 | !list_empty(&dev->pending[1]) || | 1614 | !list_empty(&dev->pending[1]) || |
1620 | !list_empty(&dev->pending[2])) | 1615 | !list_empty(&dev->pending[2])) |
1621 | _VERBS_ERROR("ipath%d pending list not empty!\n", | 1616 | ipath_dev_err(dev->dd, "pending list not empty!\n"); |
1622 | dev->ib_unit); | ||
1623 | if (!list_empty(&dev->piowait)) | 1617 | if (!list_empty(&dev->piowait)) |
1624 | _VERBS_ERROR("ipath%d piowait list not empty!\n", | 1618 | ipath_dev_err(dev->dd, "piowait list not empty!\n"); |
1625 | dev->ib_unit); | ||
1626 | if (!list_empty(&dev->rnrwait)) | 1619 | if (!list_empty(&dev->rnrwait)) |
1627 | _VERBS_ERROR("ipath%d rnrwait list not empty!\n", | 1620 | ipath_dev_err(dev->dd, "rnrwait list not empty!\n"); |
1628 | dev->ib_unit); | ||
1629 | if (!ipath_mcast_tree_empty()) | 1621 | if (!ipath_mcast_tree_empty()) |
1630 | _VERBS_ERROR("ipath%d multicast table memory leak!\n", | 1622 | ipath_dev_err(dev->dd, "multicast table memory leak!\n"); |
1631 | dev->ib_unit); | ||
1632 | /* | 1623 | /* |
1633 | * Note that ipath_unregister_ib_device() can be called before all | 1624 | * Note that ipath_unregister_ib_device() can be called before all |
1634 | * the QPs are destroyed! | 1625 | * the QPs are destroyed! |