diff options
author | Sathya Perla <sathya.perla@avagotech.com> | 2015-12-30 01:29:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-30 16:33:35 -0500 |
commit | fdf81bfb7aab307146cdc33c1d741db324572ca3 (patch) | |
tree | 50b418de20334b2d296949c8da3a31217340af39 /drivers/net/ethernet/emulex/benet/be_cmds.c | |
parent | 6b525782820f49079a0848f72d7a379f0c101cf8 (diff) | |
download | linux-stable-fdf81bfb7aab307146cdc33c1d741db324572ca3.tar.gz linux-stable-fdf81bfb7aab307146cdc33c1d741db324572ca3.tar.bz2 linux-stable-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 'drivers/net/ethernet/emulex/benet/be_cmds.c')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_cmds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_cmds.c b/drivers/net/ethernet/emulex/benet/be_cmds.c index 451f9eaa27a2..7c0e7ff4679f 100644 --- a/drivers/net/ethernet/emulex/benet/be_cmds.c +++ b/drivers/net/ethernet/emulex/benet/be_cmds.c @@ -308,8 +308,7 @@ static void be_async_grp5_cos_priority_process(struct be_adapter *adapter, if (evt->valid) { adapter->vlan_prio_bmap = evt->available_priority_bmap; - adapter->recommended_prio &= ~VLAN_PRIO_MASK; - adapter->recommended_prio = + adapter->recommended_prio_bits = evt->reco_default_priority << VLAN_PRIO_SHIFT; } } |