diff options
author | 2021-12-03 17:20:52 +0800 | |
---|---|---|
committer | 2021-12-03 11:00:59 +0000 | |
commit | 0cc25c6a14efd709f2cfcde345e3d5c6aa20f80e (patch) | |
tree | 13a5337c079805f6aebae8b2a8fd23c3ac98be47 /net/core | |
parent | net: hns3: add print vport id for failed message of vlan (diff) | |
download | wireguard-linux-0cc25c6a14efd709f2cfcde345e3d5c6aa20f80e.tar.xz wireguard-linux-0cc25c6a14efd709f2cfcde345e3d5c6aa20f80e.zip |
net: hns3: Align type of some variables with their print type
The c language has a set of implicit type conversions, when
two variables perform bitwise or arithmetic operations.
For example, variable A (type u16/u8) -1, its output is int type variable.
u16/u8 will convert to int type implicitly before it does arithmetic
operations. So, change 1 to unsigned type.
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions