Skip to content

Commit 2d880cc

Browse files
fhaverkampgregkh
authored andcommitted
GenWQE: Do not modify return code of genwqe_set_interrupt_capability
Follow up patch to the one from Sebastian Ott. There is no need to change the return code once it fails. And Sebastians version is tested now and works nicely on our test-system. Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 26d8f6f commit 2d880cc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/misc/genwqe/card_ddcb.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,10 +1251,8 @@ int genwqe_setup_service_layer(struct genwqe_dev *cd)
12511251
}
12521252

12531253
rc = genwqe_set_interrupt_capability(cd, GENWQE_MSI_IRQS);
1254-
if (rc) {
1255-
rc = -ENODEV;
1254+
if (rc)
12561255
goto stop_kthread;
1257-
}
12581256

12591257
/*
12601258
* We must have all wait-queues initialized when we enable the

0 commit comments

Comments
 (0)