summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1/chip.c
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2018-06-04 20:43:46 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-06-19 19:49:46 +0200
commit32e3d97079ad0d9adb36af2d2d09a806100690e9 (patch)
tree1ade2523e63c16df6ee12dae51dc9daf56498d5a /drivers/infiniband/hw/hfi1/chip.c
parentIB/hfi1: Move rhf_offset from devdata to ctxtdata (diff)
downloadlinux-32e3d97079ad0d9adb36af2d2d09a806100690e9.tar.xz
linux-32e3d97079ad0d9adb36af2d2d09a806100690e9.zip
IB/hfi1: Remove rcvhdrsize
The field is based on a constant that can never change. Use the define to assign the register instead. Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/chip.c')
-rw-r--r--drivers/infiniband/hw/hfi1/chip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hfi1/chip.c b/drivers/infiniband/hw/hfi1/chip.c
index b13636c95756..ccbdce2e0178 100644
--- a/drivers/infiniband/hw/hfi1/chip.c
+++ b/drivers/infiniband/hw/hfi1/chip.c
@@ -15216,8 +15216,6 @@ struct hfi1_devdata *hfi1_init_dd(struct pci_dev *pdev,
*/
aspm_init(dd);
- dd->rcvhdrsize = DEFAULT_RCVHDRSIZE;
-
ret = init_pervl_scs(dd);
if (ret)
goto bail_cleanup;