]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
GenWQE: Do not modify return code of genwqe_set_interrupt_capability
authorFrank Haverkamp <haver@linux.vnet.ibm.com>
Wed, 10 Sep 2014 14:37:49 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:15:46 +0000 (23:15 -0700)
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>
drivers/misc/genwqe/card_ddcb.c

index 75ff67485fdfd16aa31b3e386b9c02eadd845716..fe8e433cdd155338f06198da9f0f3cd19813f9ec 100644 (file)
@@ -1251,10 +1251,8 @@ int genwqe_setup_service_layer(struct genwqe_dev *cd)
        }
 
        rc = genwqe_set_interrupt_capability(cd, GENWQE_MSI_IRQS);
-       if (rc) {
-               rc = -ENODEV;
+       if (rc)
                goto stop_kthread;
-       }
 
        /*
         * We must have all wait-queues initialized when we enable the