From patchwork Sun Oct 30 17:33:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 888 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1893743wru; Sun, 30 Oct 2022 10:35:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6jdez+fTjNAsEORPigqd/CDLU55zQgY6fn198oRyWXs1q1rmCb1+qMJbmKgmNfUR+mutZk X-Received: by 2002:a05:6402:f2a:b0:461:eff7:bae8 with SMTP id i42-20020a0564020f2a00b00461eff7bae8mr9743585eda.322.1667151318973; Sun, 30 Oct 2022 10:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667151318; cv=none; d=google.com; s=arc-20160816; b=GIekpcWx7D9OXGNi5JTCVHHcagc7W8b0R5deEIh56lXOB6DLPs1xFy8FHf/AE6tF6L DxqzVd9por1N6fENv9A1DGK9E852W/R0Jn/LBSCFlNmYXmerktXwS6y3+TgNjeIXov9H C3f/fDA0I3hd6ZmrPDQtbUbRBVUf+RP3JGmnGQLu8DPRS4YMt6323KRMRkI8mJBHs8XY K9HDeA/K1tMsj2tklz6Z3B0a5ncq1aW/3tx7ZYCsKNNnEUu7hh0+cfNZ34HMeN8CDjIs ITIj/AwO+ntUWeybM8eB9aF7U77faZGz/NZxyswuchIR34vVCFaB7suh/u5cvcWlHa6T kykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=jJl2x1+YQjZI4Z2Wf6hY6jzteggfcrQVIF27ZdokwGo=; b=ABm9LDeJy2WiJEwVSpMBeRbThnjVknBidbCLafSNmQ1u1/ZUHD8LHOlB2UtWDQ6OLj l389ceg1hG7t3PnHd64GWetVWgHT+fT3xs05PUTVaMs0Fji+tE9soRWNxghbhuNAwHZb UaHfzMMaEk6jjV4BCtw6xVatY22nw6iw0eGRKDOE2V4EWl9EjzDEqsUvGAfGnE/ZGbQw ADf66bJHgYlqFiG4hg7R2iXrx3hvUrWKsltTCxj3mt+lqmfmOAvt0/b4uOFUsydNRhCM zL84tuei6dTPyVApqVz0T4AOUk3+cVqUkh6nJePzoSQxqfW5W+fbYdR4sZG8cIA38NE+ msEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7-20020a50d507000000b004614db9789asi4834105edi.127.2022.10.30.10.34.55; Sun, 30 Oct 2022 10:35:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiJ3Rdx (ORCPT + 99 others); Sun, 30 Oct 2022 13:33:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiJ3Rdu (ORCPT ); Sun, 30 Oct 2022 13:33:50 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B5999FC8 for ; Sun, 30 Oct 2022 10:33:46 -0700 (PDT) Received: from ipservice-092-217-067-184.092.217.pools.vodafone-ip.de ([92.217.67.184] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1opCBn-000469-0L; Sun, 30 Oct 2022 18:33:39 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH v2 00/13] staging: r8188eu: clean up action frame handlers Date: Sun, 30 Oct 2022 18:33:13 +0100 Message-Id: <20221030173326.1588647-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748134861328067380?= X-GMAIL-MSGID: =?utf-8?q?1748134861328067380?= Clean up the handlers for action frames. Summarize common code, remove unnecessary return values. Please apply this on top of the "remove the last get_da calls" series. Changes in v2 - remove on_action_public's ret variable in patch 3, not in patch 9 Martin Kaiser (13): staging: r8188eu: replace a GetAddr1Ptr call staging: r8188eu: remove duplicate category check staging: r8188eu: make on_action_public static void staging: r8188eu: make OnAction_back static void staging: r8188eu: make OnAction_p2p static void staging: r8188eu: remove category check in OnAction_p2p staging: r8188eu: replace switch-case with if staging: r8188eu: replace GetAddr1Ptr call in OnAction_p2p staging: r8188eu: clean up on_action_public staging: r8188eu: remove return value from on_action_public_vendor staging: r8188eu: remove return value from on_action_public_default staging: r8188eu: rtw_action_public_decache's token is a u8 staging: r8188eu: check destination address in OnAction drivers/staging/r8188eu/core/rtw_mlme_ext.c | 116 +++++------------- .../staging/r8188eu/include/rtw_mlme_ext.h | 7 -- 2 files changed, 28 insertions(+), 95 deletions(-) Tested-by: Philipp Hortmann # Edimax N150