Message ID | 20221029172337.1574593-1-martin@kaiser.cx |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1439635wru; Sat, 29 Oct 2022 10:25:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HActBBou2BgoRUJHBQAzMM06WUF5s9EDoGprKg8YDbL9y6KYslhdEz1w21CCs8XNbE4eu X-Received: by 2002:a17:90b:2705:b0:20a:b25d:5d93 with SMTP id px5-20020a17090b270500b0020ab25d5d93mr23005200pjb.218.1667064348615; Sat, 29 Oct 2022 10:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667064348; cv=none; d=google.com; s=arc-20160816; b=b4kgF1PSXsNaIBSE+TCMDfascvD5oyd+k0uNiz4/jRDOHrc9h3gSSDkkAw5Dl3i1H9 MHi/GHcl9+Uoa0YDGeTH3FKMh78MffpjLpU3fa6f9ao0BoPb+n5CuHzOxsBkJwZGFzQs 8Vh+M7/KC/JopftMUat9d65TK0//VjhqGDiYOCfIJ9D0dvsBAOicCisXW5pARvwlGk4t zBP9dATEHL4dnMwfw9cesJJQ164Md4Ac1De/97BK3+8FcMO9P/+LYr8SfvqhuZi6RlVO 7i6bW4M6yl0PoCuaOG/i4hRqLFa0L4wc23BsCwkdYncgYNRqP/MhHJOdVFKIjs3yINxF caWg== 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=cdbvbQdCYrDZoUsVhqgXjKh3dse4gTva08rzxDRnwlA=; b=n6EuJhvVZrsxAgZKjg8+dW+J074TNx/gOxbH2HEsoAk7kBsHHXOQHSXf3qEQqaPbSD oSmpiH5HjaoSJpGyEZAGTynyPZqrPPuV3bsE8yVrZSqlSPhBcgyi/e8kdnI/D00d+3Ub h8b4Ee41X383xn21EJ4p83oBtu+DZXfsV0lqz0hl3De9i9KHzetPzUcOZdeOabFC1siB rnSvXihAhFF3sjfvRzUJSm8d0gnaSR7nYIUivUydnhXeJca88ev/D6KmovlETXDlg7Qq XHcZaNJFDnMbC5LOddlMf+rMs9+TZBraDKdefutf54cDu6o8QZnYfutFWVScgkvwYqve Jz0w== 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 f20-20020a635114000000b0043c3f90f7c8si2564444pgb.655.2022.10.29.10.25.36; Sat, 29 Oct 2022 10:25:48 -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 S229674AbiJ2RXv (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Sat, 29 Oct 2022 13:23:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbiJ2RXt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Oct 2022 13:23:49 -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 146CE40009 for <linux-kernel@vger.kernel.org>; Sat, 29 Oct 2022 10:23:48 -0700 (PDT) Received: from dslb-188-097-213-253.188.097.pools.vodafone-ip.de ([188.97.213.253] 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 <martin@kaiser.cx>) id 1oopYe-00074v-3A; Sat, 29 Oct 2022 19:23:44 +0200 From: Martin Kaiser <martin@kaiser.cx> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Larry Finger <Larry.Finger@lwfinger.net>, Phillip Potter <phil@philpotter.co.uk>, Michael Straube <straube.linux@gmail.com>, Pavel Skripkin <paskripkin@gmail.com>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx> Subject: [PATCH 00/13] staging: r8188eu: clean up action frame handlers Date: Sat, 29 Oct 2022 19:23:24 +0200 Message-Id: <20221029172337.1574593-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748043666161067956?= X-GMAIL-MSGID: =?utf-8?q?1748043666161067956?= |
Series |
staging: r8188eu: clean up action frame handlers
|
|
Message
Martin Kaiser
Oct. 29, 2022, 5:23 p.m. UTC
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. 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(-)
Comments
On 10/29/22 19:23, Martin Kaiser wrote: > 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. > > 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 <philipp.g.hortmann@gmail.com> # Edimax N150