From: Frank Haverkamp Date: Wed, 10 Sep 2014 14:37:49 +0000 (+0200) Subject: GenWQE: Do not modify return code of genwqe_set_interrupt_capability X-Git-Tag: v3.18-rc1~126^2~35 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d880ccfa9be92a10ea19f5a8f7e4be2a7d45e4d;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/genwqe/card_ddcb.c b/drivers/misc/genwqe/card_ddcb.c index 75ff67485fdf..fe8e433cdd15 100644 --- a/drivers/misc/genwqe/card_ddcb.c +++ b/drivers/misc/genwqe/card_ddcb.c @@ -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