Revision e79c0e324b011b0288cd411a5b53870a7730f163 authored by Guojia Liao on 30 August 2021, 13:51:07 UTC, committed by David S. Miller on 31 August 2021, 11:36:42 UTC
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>
1 parent dc9b5ce