1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-26 07:14:41 +00:00

fix (warning): In function 'phydm_cfo_tracking':

hal/phydm/phydm_cfotracking.c:490: warning: comparison is always false due to limited range of data type
This commit is contained in:
H. Nestler 2024-11-04 20:54:38 +01:00
parent 7e36dc322a
commit 0da653935f

View File

@ -487,10 +487,10 @@ void phydm_cfo_tracking(void *dm_void)
if (dm->support_ic_type & (ODM_RTL8822C | ODM_RTL8814B |
ODM_RTL8195B | ODM_RTL8812F|ODM_RTL8723F)) {
if (crystal_cap > 0x7F)
if (crystal_cap & ~0x7F)
crystal_cap = 0x7F;
} else {
if (crystal_cap > 0x3F)
if (crystal_cap & ~0x3F)
crystal_cap = 0x3F;
}
if (crystal_cap < 0)