diff options
author | Guojia Liao <liaoguojia@huawei.com> | 2021-08-30 21:51:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-31 12:36:42 +0100 |
commit | e79c0e324b011b0288cd411a5b53870a7730f163 (patch) | |
tree | ed82568cc131a52b26deeed6bdea846f049c4748 /drivers/fpga/fpga-mgr.c | |
parent | dc9b5ce03124cf86bac3bd714369a8387d6e2012 (diff) | |
download | linux-stable-e79c0e324b011b0288cd411a5b53870a7730f163.tar.gz linux-stable-e79c0e324b011b0288cd411a5b53870a7730f163.tar.bz2 linux-stable-e79c0e324b011b0288cd411a5b53870a7730f163.zip |
net: hns3: clean up a type mismatch warning
abs() returns signed long, which could not convert the type
as unsigned, and it may cause a mismatch type warning from
static tools. To fix it, this patch uses an variable to save
the abs()'s result and does a explicit conversion.
Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions