Re: [dpdk-dev] [PATCH 1/2] eth: get rid of goto's in rte_eth_dev_detach

2016-12-22 Thread Thomas Monjalon
2016-12-08 10:25, Ferruh Yigit: > On 12/8/2016 1:47 AM, Stephen Hemminger wrote: > > --- a/lib/librte_ether/rte_ethdev.c > > +++ b/lib/librte_ether/rte_ethdev.c > > @@ -466,27 +466,20 @@ rte_eth_dev_attach(const char *devargs, uint8_t > > *port_id) > > int > > rte_eth_dev_detach(uint8_t port_id,

Re: [dpdk-dev] [PATCH 1/2] eth: get rid of goto's in rte_eth_dev_detach

2016-12-08 Thread Ferruh Yigit
On 12/8/2016 1:47 AM, Stephen Hemminger wrote: > Extra goto's to just a return are unnecessary. > > Signed-off-by: Stephen Hemminger > --- > lib/librte_ether/rte_ethdev.c | 21 +++-- > 1 file changed, 7 insertions(+), 14 deletions(-) > > diff --git a/lib/librte_ether/rte_ethdev.

[dpdk-dev] [PATCH 1/2] eth: get rid of goto's in rte_eth_dev_detach

2016-12-07 Thread Stephen Hemminger
Extra goto's to just a return are unnecessary. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 4209ad0..40c7cc6 100644