mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-10 15:23:06 +00:00
rtl8188eu: Remove wrapper around memcmp()
Caution: The wrapper inverts the state. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
24391e61f4
commit
89efde68f8
17 changed files with 137 additions and 149 deletions
|
@ -113,16 +113,6 @@ void rtw_mfree2d(void *pbuf, int h, int w, int size)
|
|||
kfree(pbuf);
|
||||
}
|
||||
|
||||
int _rtw_memcmp(void *dst, void *src, u32 sz)
|
||||
{
|
||||
/* under Linux/GNU/GLibc, the return value of memcmp for two same
|
||||
* mem. chunk is 0 */
|
||||
if (!(memcmp(dst, src, sz)))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
For the following list_xxx operations,
|
||||
caller must guarantee the atomic context.
|
||||
|
|
|
@ -168,7 +168,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
|
|||
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
|
||||
int bmcast = IS_MCAST(pattrib->dst);
|
||||
|
||||
if (!_rtw_memcmp(pattrib->dst, myid(&padapter->eeprompriv),
|
||||
if (memcmp(pattrib->dst, myid(&padapter->eeprompriv),
|
||||
ETH_ALEN)) {
|
||||
if (bmcast) {
|
||||
psta = rtw_get_bcmc_stainfo(padapter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue