mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
e3d14b08e8
commit
d60923c465
@ -4914,12 +4914,11 @@ static int e1000_transfer_dhcp_info(struct e1000_adapter *adapter,
|
||||
struct e1000_hw *hw = &adapter->hw;
|
||||
u16 length, offset;
|
||||
|
||||
if (vlan_tx_tag_present(skb)) {
|
||||
if (!((vlan_tx_tag_get(skb) == adapter->hw.mng_cookie.vlan_id) &&
|
||||
(adapter->hw.mng_cookie.status &
|
||||
E1000_MNG_DHCP_COOKIE_STATUS_VLAN)))
|
||||
return 0;
|
||||
}
|
||||
if (vlan_tx_tag_present(skb) &&
|
||||
!((vlan_tx_tag_get(skb) == adapter->hw.mng_cookie.vlan_id) &&
|
||||
(adapter->hw.mng_cookie.status &
|
||||
E1000_MNG_DHCP_COOKIE_STATUS_VLAN)))
|
||||
return 0;
|
||||
|
||||
if (skb->len <= MINIMUM_DHCP_PACKET_SIZE)
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user