mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 17:30:18 +00:00
ib_srpt: Kernel 4.14 build fix
Signed-off-by: Peter Vyazovik <fuzzhead0@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4477,12 +4477,7 @@ static void srpt_add_one(struct ib_device *device)
|
||||
|
||||
INIT_IB_EVENT_HANDLER(&sdev->event_handler, sdev->device,
|
||||
srpt_event_handler);
|
||||
ret = ib_register_event_handler(&sdev->event_handler);
|
||||
if (ret) {
|
||||
pr_err("ib_register_event_handler() failed: %d\n", ret);
|
||||
goto err_cm;
|
||||
}
|
||||
|
||||
ib_register_event_handler(&sdev->event_handler);
|
||||
atomic_inc(&srpt_device_count);
|
||||
out:
|
||||
ib_set_client_data(device, &srpt_client, sdev);
|
||||
|
||||
Reference in New Issue
Block a user