mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
staging: r8188eu: move bBusyTraffic update
Move the update of bBusyTraffic into the else branch. The if branch ends with a return statement, so bBusyTraffic will not be updated in this case. With this change in place, we can reorder the code and save some levels of indentation. Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20221129205152.128172-4-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e70cac829d
commit
8f7f05934e
1 changed files with 1 additions and 1 deletions
|
@ -1466,8 +1466,8 @@ static void OnDisassoc(struct adapter *padapter, struct recv_frame *precv_frame)
|
|||
return;
|
||||
} else {
|
||||
receive_disconnect(padapter, mgmt->bssid, reason);
|
||||
pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
|
||||
}
|
||||
pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
|
||||
}
|
||||
|
||||
static void OnAction_back(struct adapter *padapter, struct recv_frame *precv_frame)
|
||||
|
|
Loading…
Reference in a new issue