rte_eth_dev_info_get() return value was changed from void to
int, so this patch modify rte_eth_dev_info_get() usage across
net/failsafe according to its new return type.
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
 {
        struct sub_device *sdev;
        uint8_t i;
+       int ret;
 
        /* Use maximum upper bounds by default */
        infos->max_rx_pktlen = UINT32_MAX;
        FOREACH_SUBDEV_STATE(sdev, i, dev, DEV_PROBED) {
                struct rte_eth_dev_info sub_info;
 
-               rte_eth_dev_info_get(PORT_ID(sdev), &sub_info);
+               ret = rte_eth_dev_info_get(PORT_ID(sdev), &sub_info);
+               ret = fs_err(sdev, ret);
+               if (ret != 0)
+                       return;
 
                fs_dev_merge_info(infos, &sub_info);
        }