Home
last modified time | relevance | path

Searched hist:"3 e9e40e74753346218e8285cf1ecff9ef3a624c6" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/
H A Dmacvtap.cdiff 3e9e40e74753346218e8285cf1ecff9ef3a624c6 Fri Nov 18 17:40:38 CST 2016 Jarno Rajahalme <jarno@ovn.org> 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>
H A Dtun.cdiff 3e9e40e74753346218e8285cf1ecff9ef3a624c6 Fri Nov 18 17:40:38 CST 2016 Jarno Rajahalme <jarno@ovn.org> 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>