Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
fd closed twice
[vpp.git]
/
vnet
/
vnet
/
devices
/
netmap
/
netmap.c
diff --git
a/vnet/vnet/devices/netmap/netmap.c
b/vnet/vnet/devices/netmap/netmap.c
index
fe6f1ea
..
3bdb442
100644
(file)
--- a/
vnet/vnet/devices/netmap/netmap.c
+++ b/
vnet/vnet/devices/netmap/netmap.c
@@
-59,8
+59,7
@@
close_netmap_if (netmap_main_t * nm, netmap_if_t * nif)
unix_file_del (&unix_main, unix_main.file_pool + nif->unix_file_index);
nif->unix_file_index = ~0;
}
-
- if (nif->fd > -1)
+ else if (nif->fd > -1)
close (nif->fd);
if (nif->mem_region)