]> Git Repo - qemu.git/commit
net: simplify net_init_tap_one logic
authorPaolo Bonzini <[email protected]>
Thu, 25 Feb 2016 23:05:57 +0000 (00:05 +0100)
committerJason Wang <[email protected]>
Tue, 8 Mar 2016 07:34:09 +0000 (15:34 +0800)
commit3a2d44f6dd1d6cc1e5a5ebfa736a72e035c41d1b
treee9336e9ba7a7b7080184cb4adeaaa5918b31cea4
parentd24b2b1cccbf598d004bc211a22af30e064dee65
net: simplify net_init_tap_one logic

net_init_tap_one receives in vhostfdname a fd name from vhostfd= or
vhostfds=, or NULL if there is no vhostfd=/vhostfds=.  It is simpler
to just check vhostfdname, than it is to check for vhostfd= or
vhostfds=.  This also calms down Coverity, which otherwise thinks
that monitor_fd_param could dereference a NULL vhostfdname.

Signed-off-by: Paolo Bonzini <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
net/tap.c
This page took 0.022143 seconds and 4 git commands to generate.