staging: r8188eu: don't call empty DoReserved function
authorMartin Kaiser <martin@kaiser.cx>
Sun, 17 Apr 2022 10:22:20 +0000 (12:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 16:37:17 +0000 (18:37 +0200)
Replace the DoReserved function pointer with NULL in mlme_sta_tbl. We can
skip the function call for reserved subtypes.

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

index f7d37a2..6896379 100644 (file)
@@ -22,8 +22,8 @@ static mlme_handler mlme_sta_tbl[] = {
        OnAssocRsp,
        OnProbeReq,
        OnProbeRsp,
-       DoReserved,
-       DoReserved,
+       NULL,
+       NULL,
        OnBeacon,
        OnAtim,
        OnDisassoc,