summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/chip.c
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-03-05 08:50:17 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-17 15:55:15 -0400
commit7a8f28ca3daa61dc48046b4f1fa73139fb47bbfe (patch)
tree6722fde10d73eb9fcac5f0268945ca323fc6d4a7 /drivers/staging/rdma/hfi1/chip.c
parenta453698b52dbfb248d23331450c638eaa3219025 (diff)
downloadlinux-7a8f28ca3daa61dc48046b4f1fa73139fb47bbfe.tar.bz2
IB/hfi1: Remove unused HFI1_DO_INIT_ASIC flag
The flag HFI1_DO_INIT_ASIC flag is no longer used. Remove the flag and the code that sets it. Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com> Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/chip.c')
-rw-r--r--drivers/staging/rdma/hfi1/chip.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c
index 717091375810..ac0345257b9c 100644
--- a/drivers/staging/rdma/hfi1/chip.c
+++ b/drivers/staging/rdma/hfi1/chip.c
@@ -13815,11 +13815,6 @@ void hfi1_start_cleanup(struct hfi1_devdata *dd)
* Information can be shared between the two HFIs on the same ASIC
* in the same OS. This function finds the peer device and sets
* up a shared structure.
- *
- * Certain chip functions need to be initialized only once per asic
- * instead of per-device. This function finds the peer device and
- * checks whether that chip initialization needs to be done by this
- * device.
*/
static int init_asic_data(struct hfi1_devdata *dd)
{
@@ -13837,13 +13832,6 @@ static int init_asic_data(struct hfi1_devdata *dd)
}
}
- /*
- * "Claim" the ASIC for initialization if it hasn't been
- " "claimed" yet.
- */
- if (!peer || !(peer->flags & HFI1_DO_INIT_ASIC))
- dd->flags |= HFI1_DO_INIT_ASIC;
-
if (peer) {
dd->asic_data = peer->asic_data;
} else {