瀏覽代碼

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>
Frank Haverkamp 11 年之前
父節點
當前提交
2d880ccfa9
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/misc/genwqe/card_ddcb.c

+ 1 - 3
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