staging: r8188eu: simplify error handling for missing station
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Nov 2022 16:01:28 +0000 (17:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:28:59 +0000 (13:28 +0100)
commitdd99fe1f5a8319f0e236c0548cdba849451779d5
treeb865e6017303369dcd82923f0d489255fef69e3d
parentfa205589d5e9fc2d1b2f8d31f665152da04160bc
staging: r8188eu: simplify error handling for missing station

Simplify the code to handle the case where we're associated to a station
that is not in our list of known stations.

We can simply exit in this case. This patch reverts the if-condition and
saves one level 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/20221126160129.178697-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c