e1000e: merge multiple conditional statements into one
Cleanup a set of conditional tests. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
e3d14b08e8
commit
d60923c465
@@ -4914,12 +4914,11 @@ static int e1000_transfer_dhcp_info(struct e1000_adapter *adapter,
|
|||||||
struct e1000_hw *hw = &adapter->hw;
|
struct e1000_hw *hw = &adapter->hw;
|
||||||
u16 length, offset;
|
u16 length, offset;
|
||||||
|
|
||||||
if (vlan_tx_tag_present(skb)) {
|
if (vlan_tx_tag_present(skb) &&
|
||||||
if (!((vlan_tx_tag_get(skb) == adapter->hw.mng_cookie.vlan_id) &&
|
!((vlan_tx_tag_get(skb) == adapter->hw.mng_cookie.vlan_id) &&
|
||||||
(adapter->hw.mng_cookie.status &
|
(adapter->hw.mng_cookie.status &
|
||||||
E1000_MNG_DHCP_COOKIE_STATUS_VLAN)))
|
E1000_MNG_DHCP_COOKIE_STATUS_VLAN)))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
if (skb->len <= MINIMUM_DHCP_PACKET_SIZE)
|
if (skb->len <= MINIMUM_DHCP_PACKET_SIZE)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user