mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-11-26 15:26:24 +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:
parent
7e36dc322a
commit
0da653935f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user