diff options
author | Jarno Rajahalme <jarno@ovn.org> | 2016-11-18 15:40:38 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-19 10:37:03 -0500 |
commit | 3e9e40e74753346218e8285cf1ecff9ef3a624c6 (patch) | |
tree | efc76c91903ebe831f20503ede23baebfc447222 /include/linux/virtio_net.h | |
parent | ab677ff4ad15bc26c359490ee201557f3a6d20df (diff) | |
download | linux-3e9e40e74753346218e8285cf1ecff9ef3a624c6.tar.gz linux-3e9e40e74753346218e8285cf1ecff9ef3a624c6.tar.bz2 linux-3e9e40e74753346218e8285cf1ecff9ef3a624c6.zip |
virtio_net: Simplify call sites for virtio_net_hdr_{from, to}_skb().
No point storing the return value of virtio_net_hdr_to_skb() or
virtio_net_hdr_from_skb() to a variable when the value is used only
once as a boolean in an immediately following if statement.
Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/virtio_net.h')
0 files changed, 0 insertions, 0 deletions