On Wed, 20 Jan 2016 11:01:17 +0000
Jasvinder Singh <jasvinder.singh at intel.com> wrote:

> +static inline int
> +app_get_cpu_socket_id(uint32_t pmd_id)
> +{
> +     int status = rte_eth_dev_socket_id(pmd_id);
> +
> +     if (status == -1)
> +             return 0;
> +
> +     return status;
> +

Why not:
    return (status != SOCKET_ID_ANY) ? status : 0;

Reply via email to