Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp2063268rwj; Sun, 30 Oct 2022 10:36:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Mv10hSD3imWLHU8Fzqyx5fDjmvfDn+1TnrwcCwhSRpUe4CgndlxOwWrO4djyi3ENwExji X-Received: by 2002:a17:907:80d:b0:73d:a576:dfbd with SMTP id wv13-20020a170907080d00b0073da576dfbdmr8984767ejb.402.1667151370923; Sun, 30 Oct 2022 10:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667151370; cv=none; d=google.com; s=arc-20160816; b=V92OZFM5GTeD2CFL582hkzuWtRykcXjvyvuXnC5pJYw7ku12c8vEpplvMk4+l+gFdj 4ME1nfVzqAx1mBs+jgaotut7my5YN0x6h+rZI6AmgBcNPV6326LYJUchm1A9VdrdKe2t 4Lg3jz3qRK68qPfB99mj4eKjGC7guOtffGmjnSjAlaBxakAVavsSLGPqfGJHLMzhDroF haTpVRHEZYUCcOpaRbEfTmE9EVfgB7/BLY2U50mvmN8twumGBEs4f1MheJ813UaZkk9h cVnG4EkJR25irMENmhkny+e+zkDIBEPM1YxKCscaMRuXtlG1OMteJRYe8olCCaMEaLbf +xNg== 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 Return-Path: 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.35.46; Sun, 30 Oct 2022 10:36:10 -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 Content-Transfer-Encoding: 8bit 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 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(-) -- 2.30.2