staging: r8188eu: clean up rtl8188e_sreset_linked_status_check
authorMartin Kaiser <martin@kaiser.cx>
Sun, 12 Dec 2021 18:58:33 +0000 (19:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Dec 2021 16:47:43 +0000 (17:47 +0100)
commited7d6119aa8bca3f8eec03b83248f09d2d39e88e
treeae93c11ecdbe5603b26261ab764abc2934743a2e
parentb66fbc855ee5ef29006f6d0148fff89c05bf47c7
staging: r8188eu: clean up rtl8188e_sreset_linked_status_check

Clean up the rtl8188e_sreset_linked_status_check, which has just
been moved to rtw_mlme_ext.

Don't initialise variables to 0 if the first access sets a new value.

Check the value of fw_status only once.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20211212185833.22000-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c