diff options
author | 2015-12-30 01:29:01 -0500 | |
---|---|---|
committer | 2015-12-30 16:33:35 -0500 | |
commit | fdf81bfb7aab307146cdc33c1d741db324572ca3 (patch) | |
tree | 50b418de20334b2d296949c8da3a31217340af39 /drivers/net/ethernet/emulex/benet/be_main.c | |
parent | be2net: log digital signature errors while flashing FW image (diff) | |
download | linux-dev-fdf81bfb7aab307146cdc33c1d741db324572ca3.tar.xz linux-dev-fdf81bfb7aab307146cdc33c1d741db324572ca3.zip |
be2net: remove a line of code that has no effect
This patch removes a line of code that changes adapter->recommended_prio
value followed by yet another assignment.
Also, the variable is used to store the vlan priority value that is already
shifted to the PCP bits position in the vlan tag format. Hence, the name of
this variable is changed to recommended_prio_bits.
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 646b02136b0e..c9f9d4b7e6af 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -729,7 +729,7 @@ static inline u16 be_get_tx_vlan_tag(struct be_adapter *adapter, /* If vlan priority provided by OS is NOT in available bmap */ if (!(adapter->vlan_prio_bmap & (1 << vlan_prio))) vlan_tag = (vlan_tag & ~VLAN_PRIO_MASK) | - adapter->recommended_prio; + adapter->recommended_prio_bits; return vlan_tag; } |