[v2] app/testpmd: fix unused variable compile error
Checks
Commit Message
From: Zhu Tao <taox.zhu@intel.com>
This minor patch fixes unused variable ‘ret’ compile error When
CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected.
Fixes: f5267e485a2a ("app/testpmd: check status of getting ethdev info")
Signed-off-by: Zhu Tao <taox.zhu@intel.com>
---
app/test-pmd/config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of taox.zhu@intel.com
> Sent: Thursday, September 26, 2019 2:03 AM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
> <jingjing.wu@intel.com>; Iremonger, Bernard <bernard.iremonger@intel.com>
> Cc: dev@dpdk.org; ivan.ilchenko@oktetlabs.com; Zhu, TaoX
> <taox.zhu@intel.com>
> Subject: [dpdk-dev] [PATCH v2] app/testpmd: fix unused variable compile error
>
> From: Zhu Tao <taox.zhu@intel.com>
>
> This minor patch fixes unused variable ‘ret’ compile error When
> CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected.
>
> Fixes: f5267e485a2a ("app/testpmd: check status of getting ethdev info")
>
> Signed-off-by: Zhu Tao <taox.zhu@intel.com>
Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
On 9/26/2019 2:33 AM, Zhang, Qi Z wrote:
>
>
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of taox.zhu@intel.com
>> Sent: Thursday, September 26, 2019 2:03 AM
>> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
>> <jingjing.wu@intel.com>; Iremonger, Bernard <bernard.iremonger@intel.com>
>> Cc: dev@dpdk.org; ivan.ilchenko@oktetlabs.com; Zhu, TaoX
>> <taox.zhu@intel.com>
>> Subject: [dpdk-dev] [PATCH v2] app/testpmd: fix unused variable compile error
>>
>> From: Zhu Tao <taox.zhu@intel.com>
>>
>> This minor patch fixes unused variable ‘ret’ compile error When
>> CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC was selected.
>>
>> Fixes: f5267e485a2a ("app/testpmd: check status of getting ethdev info")
>>
>> Signed-off-by: Zhu Tao <taox.zhu@intel.com>
>
> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
>
Applied to dpdk-next-net/master, thanks.
@@ -1649,10 +1649,10 @@ ring_rx_descriptor_display(const struct rte_memzone *ring_mz,
#endif
uint16_t desc_id)
{
- int ret;
struct igb_ring_desc_16_bytes *ring =
(struct igb_ring_desc_16_bytes *)ring_mz->addr;
#ifndef RTE_LIBRTE_I40E_16BYTE_RX_DESC
+ int ret;
struct rte_eth_dev_info dev_info;
ret = eth_dev_info_get_print_err(port_id, &dev_info);