From: Tetsuya Mukawa Date: Fri, 27 Feb 2015 05:20:34 +0000 (+0900) Subject: ethdev: fix build with icc X-Git-Tag: spdx-start~9518 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=911920812fb30c1bd13e3baeb82a5f3358e5c445;p=dpdk.git 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 --- 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; }