Skip to content
Commit 3e9e40e7 authored by Jarno Rajahalme's avatar Jarno Rajahalme Committed by David S. Miller
Browse files

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: default avatarJarno Rajahalme <jarno@ovn.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab677ff4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment