The code after the break cannot be executed. If the entry is not free, free it.
Signed-off-by: Mike Holmes <[email protected]> --- platform/linux-generic/odp_packet_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 0c30f0f..fb9fe2d 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -228,8 +228,8 @@ int odp_pktio_close(odp_pktio_t id) break; default: break; - res |= free_pktio_entry(id); } + res |= free_pktio_entry(id); } unlock_entry(entry); -- 1.9.1 _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
