diff options
| author | Dan Carpenter <[email protected]> | 2021-06-19 13:49:18 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-21 19:14:11 +0000 |
| commit | 956c3ae411b2746c5018e0454909eb8c662b31ef (patch) | |
| tree | 34185e939b247f5b1f7ddf349daffc3a80c63853 /drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | |
| parent | net: hns3: fix different snprintf() limit (diff) | |
| download | kernel-956c3ae411b2746c5018e0454909eb8c662b31ef.tar.gz kernel-956c3ae411b2746c5018e0454909eb8c662b31ef.zip | |
net: hns3: fix a double shift bug
These flags are used to set and test bits like this:
if (!test_bit(HCLGE_PTP_FLAG_TX_EN, &ptp->flags) ||
The issue is that test_bit() takes a bit number like 1, but we are
passing BIT(1) instead and it's testing BIT(BIT(1)). This does not
cause a problem because it is always done consistently and the bit
values are very small.
Fixes: 0bf5eb788512 ("net: hns3: add support for PTP")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_mux_codec.c')
0 files changed, 0 insertions, 0 deletions
