Re: [Qemu-devel] [PATCH 4/5] net: drop if expression that is always true

2015-05-27 Thread Thomas Huth
On Wed, 27 May 2015 17:16:51 +0100 Stefan Hajnoczi wrote: > Both is_netdev and !is_netdev paths already check that > net_client_init_func[opts->kind] is non-NULL so there is no need for the > if statement. > > Signed-off-by: Stefan Hajnoczi > --- > net/net.c | 31 ++

[Qemu-devel] [PATCH 4/5] net: drop if expression that is always true

2015-05-27 Thread Stefan Hajnoczi
Both is_netdev and !is_netdev paths already check that net_client_init_func[opts->kind] is non-NULL so there is no need for the if statement. Signed-off-by: Stefan Hajnoczi --- net/net.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/net/net