|
@@ -1844,7 +1844,6 @@ int hfi1_register_ib_device(struct hfi1_devdata *dd)
|
|
|
struct hfi1_ibport *ibp = &ppd->ibport_data;
|
|
|
unsigned i;
|
|
|
int ret;
|
|
|
- size_t lcpysz = IB_DEVICE_NAME_MAX;
|
|
|
|
|
|
for (i = 0; i < dd->num_pports; i++)
|
|
|
init_ibport(ppd + i);
|
|
@@ -1872,8 +1871,6 @@ int hfi1_register_ib_device(struct hfi1_devdata *dd)
|
|
|
*/
|
|
|
if (!ib_hfi1_sys_image_guid)
|
|
|
ib_hfi1_sys_image_guid = ibdev->node_guid;
|
|
|
- lcpysz = strlcpy(ibdev->name, class_name(), lcpysz);
|
|
|
- strlcpy(ibdev->name + lcpysz, "_%d", IB_DEVICE_NAME_MAX - lcpysz);
|
|
|
ibdev->owner = THIS_MODULE;
|
|
|
ibdev->phys_port_cnt = dd->num_pports;
|
|
|
ibdev->dev.parent = &dd->pcidev->dev;
|