}
 }
 
-/**
- * srpt_sdev_name() - Return the name associated with the HCA.
- *
- * Examples are ib0, ib1, ...
- */
-static inline const char *srpt_sdev_name(struct srpt_device *sdev)
-{
-       return sdev->device->name;
-}
-
 static enum rdma_ch_state srpt_get_ch_state(struct srpt_rdma_ch *ch)
 {
        unsigned long flags;
                return;
 
        pr_debug("ASYNC event= %d on device= %s\n", event->event,
-                srpt_sdev_name(sdev));
+                sdev->device->name);
 
        switch (event->event) {
        case IB_EVENT_PORT_ERR:
 
                if (srpt_refresh_port(sport)) {
                        pr_err("MAD registration failed for %s-%d.\n",
-                              srpt_sdev_name(sdev), i);
+                              sdev->device->name, i);
                        goto err_ring;
                }
                snprintf(sport->port_guid, sizeof(sport->port_guid),