mirror of https://gitee.com/openkylin/linux.git
staging: rtl8188eu: abs kernel macro used in simularity_compare function
abs macro is useful for determining the difference between the two integers. Signed-off-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
530c9b1b21
commit
016c6bbaf1
|
@ -1013,7 +1013,7 @@ static bool simularity_compare(struct adapter *adapt, s32 resulta[][8],
|
|||
tmp2 = resulta[c2][i];
|
||||
}
|
||||
|
||||
diff = (tmp1 > tmp2) ? (tmp1 - tmp2) : (tmp2 - tmp1);
|
||||
diff = abs(tmp1 - tmp2);
|
||||
|
||||
if (diff > MAX_TOLERANCE) {
|
||||
if ((i == 2 || i == 6) && !sim_bitmap) {
|
||||
|
|
Loading…
Reference in New Issue