From 911920812fb30c1bd13e3baeb82a5f3358e5c445 Mon Sep 17 00:00:00 2001 From: Tetsuya Mukawa Date: Fri, 27 Feb 2015 14:20:34 +0900 Subject: [PATCH] ethdev: fix build with icc This patch fixes following errors with icc. error #188: enumerated type mixed with another type return -1; Fixes: 92d94d3744d7 ("ethdev: attach or detach port") Reported-by: John McNamara Signed-off-by: Tetsuya Mukawa Acked-by: John McNamara --- lib/librte_ether/rte_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index bb94ccb954..6ea7a17eef 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -433,7 +433,7 @@ static enum rte_eth_dev_type rte_eth_dev_get_device_type(uint8_t port_id) { if (!rte_eth_dev_is_valid_port(port_id)) - return -1; + return RTE_ETH_DEV_UNKNOWN; return rte_eth_devices[port_id].dev_type; } -- 2.20.1