summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio
diff options
context:
space:
mode:
authorPavel Machek <pavel@denx.de>2021-06-18 11:29:48 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-18 11:56:33 -0700
commit39eb028183bc7378bb6187067e20bf6d8c836407 (patch)
treec4954a7f93972389b0698eb7bd5ea24f66fc2a3d /drivers/net/ethernet/chelsio
parent1c200f832e14420fa770193f9871f4ce2df00d07 (diff)
downloadlwn-39eb028183bc7378bb6187067e20bf6d8c836407.tar.gz
lwn-39eb028183bc7378bb6187067e20bf6d8c836407.zip
cxgb4: fix wrong shift.
While fixing coverity warning, commit dd2c79677375 introduced typo in shift value. Fix that. Signed-off-by: Pavel Machek (CIP) <pavel@denx.de> Fixes: dd2c79677375 ("cxgb4: Fix unintentional sign extension issues") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
index 22c9ac922eba..6260b3bebd2b 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
@@ -198,7 +198,7 @@ static void set_nat_params(struct adapter *adap, struct filter_entry *f,
WORD_MASK, f->fs.nat_lip[3] |
f->fs.nat_lip[2] << 8 |
f->fs.nat_lip[1] << 16 |
- (u64)f->fs.nat_lip[0] << 25, 1);
+ (u64)f->fs.nat_lip[0] << 24, 1);
}
}