mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 06:43:06 +00:00
rtl8188eu: Remove the wrapper around memcmp()
The tricky part here is that the wrapper, _rtw_memcmp(), returns true if the two arguments are equal, whereas memcmp() returns false in that case. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
999a777041
commit
a010d15b64
35 changed files with 881 additions and 890 deletions
|
@ -216,7 +216,7 @@ s32 odm_compare_memory(
|
|||
u32 length
|
||||
)
|
||||
{
|
||||
return _rtw_memcmp(p_buf1, p_buf2, length);
|
||||
return !memcmp(p_buf1, p_buf2, length);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1599,7 +1599,7 @@ odm_refresh_rate_adaptive_mask_ce(
|
|||
/**/
|
||||
}
|
||||
#else
|
||||
if (true == odm_ra_state_check(p_dm_odm, p_entry->rssi_stat.undecorated_smoothed_pwdb, false, &p_entry->rssi_level)) {
|
||||
if (odm_ra_state_check(p_dm_odm, p_entry->rssi_stat.undecorated_smoothed_pwdb, false, &p_entry->rssi_level)) {
|
||||
ODM_RT_TRACE(p_dm_odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD, ("RSSI:%d, RSSI_LEVEL:%d\n", p_entry->rssi_stat.undecorated_smoothed_pwdb, p_entry->rssi_level));
|
||||
/* printk("RSSI:%d, RSSI_LEVEL:%d\n", pstat->rssi_stat.undecorated_smoothed_pwdb, pstat->rssi_level); */
|
||||
rtw_hal_update_ra_mask(p_entry, p_entry->rssi_level, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue