devices/e100-2.6.33-ethercat.c
branchstable-1.5
changeset 2582 87e502828b3f
parent 2421 bc2d4bf9cbe5
--- a/devices/e100-2.6.33-ethercat.c	Mon Oct 27 14:55:50 2014 +0100
+++ b/devices/e100-2.6.33-ethercat.c	Mon Oct 27 16:33:23 2014 +0100
@@ -3011,7 +3011,8 @@
 		pdev->irq, netdev->dev_addr);
 
 	if (nic->ecdev) {
-		if (ecdev_open(nic->ecdev)) {
+		err = ecdev_open(nic->ecdev);
+		if (err) {
 			ecdev_withdraw(nic->ecdev);
 			goto err_out_free;
 		}