Commit 87e4dc33 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Anas Nashif
Browse files

driver: ethernet: e1000: Use correct return for device init()



In case of successful detection, return 0. Otherwise, return -ENODEV
error.

Signed-off-by: default avatarPaul Sokolovsky <paul.sokolovsky@linaro.org>
parent 47bd922f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -165,10 +165,10 @@ int e1000_probe(struct device *device)

		pci_show(&dev->pci);

		found = true;
		return 0;
	}

	return found;
	return -ENODEV;
}

static struct device DEVICE_NAME_GET(eth_e1000);