staging: r8188eu: return immediately if we're not meant to encrypt
authorMartin Kaiser <martin@kaiser.cx>
Fri, 30 Dec 2022 18:06:30 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:31:21 +0000 (19:31 +0100)
commitc22afb2e5d4f79783e6463af86fccc4aa2cce071
treeadde0e26249d14548c4a3e6b2b17b3f1c72b0fee
parent00df407396ddf0d027bb3380fe07ed67e3624b81
staging: r8188eu: return immediately if we're not meant to encrypt

In function xmitframe_swencrypt, we can return immediately if our packet
needs no encryption. This is simpler than wrapping all the code into a
large if statement.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221230180646.91008-5-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c