From: Zhiyong Yang Date: Wed, 11 Oct 2017 06:59:50 +0000 (+0800) Subject: app/testpmd: remove unnecessary cast X-Git-Tag: spdx-start~1448 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=492ab6044510be3d2545b4009764da2d83bc7fcb;p=dpdk.git app/testpmd: remove unnecessary cast Signed-off-by: Zhiyong Yang Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 6d72563a1c..f6398a0253 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1364,14 +1364,14 @@ stop_packet_forwarding(void) void dev_set_link_up(portid_t pid) { - if (rte_eth_dev_set_link_up((uint8_t)pid) < 0) + if (rte_eth_dev_set_link_up(pid) < 0) printf("\nSet link up fail.\n"); } void dev_set_link_down(portid_t pid) { - if (rte_eth_dev_set_link_down((uint8_t)pid) < 0) + if (rte_eth_dev_set_link_down(pid) < 0) printf("\nSet link down fail.\n"); }