netdev-linux: Remove unreachable code in netdev_linux_rx_recv_tap().
authorIlya Maximets <i.maximets@samsung.com>
Wed, 25 Nov 2015 08:23:50 +0000 (11:23 +0300)
committerBen Pfaff <blp@ovn.org>
Thu, 26 Nov 2015 05:58:28 +0000 (21:58 -0800)
commitbc85690660abea9492f3cd3a51e696ccfad315e0
tree255404cade1d6bec59a6ac2a3593f7af653f5a9b
parent09dbf169e129778d25e7e69a1d87d4e00cf34505
netdev-linux: Remove unreachable code in netdev_linux_rx_recv_tap().

While splitting netdev_linux_rx_recv() into netdev_linux_rx_recv_sock()
and netdev_linux_rx_recv_tap() in commit
b73c85181df9 ("netdev-linux: Read packet auxdata to obtain vlan_tid")
error handling part was copied 'as is' to both functions.
But in case of netdev_linux_rx_recv_tap(), according to POSIX, the
number of bytes read shall never be greater than 'size'.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
AUTHORS
lib/netdev-linux.c