Searched hist:"0 cc25c6a" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mbx.c | 0cc25c6a Fri Dec 03 03:20:52 CST 2021 Hao Chen <chenhao288@hisilicon.com> 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>
|
H A D | hclge_debugfs.c | 0cc25c6a Fri Dec 03 03:20:52 CST 2021 Hao Chen <chenhao288@hisilicon.com> 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>
|
H A D | hclge_main.c | 0cc25c6a Fri Dec 03 03:20:52 CST 2021 Hao Chen <chenhao288@hisilicon.com> 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>
|