mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-25 09:31:36 +00:00
Fix: address of array 'dvobj->padapters' will always evaluate to 'true'
This commit is contained in:
parent
5a2a7eb70d
commit
fbf42d905a
@ -4400,7 +4400,7 @@ static u8 rtw_ap_update_chbw_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp
|
||||
int i;
|
||||
|
||||
for (i = 0; i < dvobj->iface_nums; i++) {
|
||||
if (!(ifbmp & BIT(i)) || !dvobj->padapters)
|
||||
if (!(ifbmp & BIT(i)) || &(dvobj->padapters) == NULL)
|
||||
continue;
|
||||
|
||||
iface = dvobj->padapters[i];
|
||||
@ -4420,7 +4420,7 @@ static u8 rtw_ap_update_chbw_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp
|
||||
}
|
||||
|
||||
for (i = 0; i < dvobj->iface_nums; i++) {
|
||||
if (!(ifbmp & BIT(i)) || !dvobj->padapters)
|
||||
if (!(ifbmp & BIT(i)) || &(dvobj->padapters) == NULL)
|
||||
continue;
|
||||
|
||||
iface = dvobj->padapters[i];
|
||||
|
Loading…
Reference in New Issue
Block a user