From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D8C3FC433EF for ; Mon, 2 May 2022 20:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235549AbiEBUKi (ORCPT ); Mon, 2 May 2022 16:10:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235231AbiEBUKg (ORCPT ); Mon, 2 May 2022 16:10:36 -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 16DF1BC9C for ; Mon, 2 May 2022 13:07:05 -0700 (PDT) Received: from ipservice-092-217-077-109.092.217.pools.vodafone-ip.de ([92.217.77.109] 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 1nlcJw-0007ch-IE; Mon, 02 May 2022 22:07:00 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 0/9] staging: r8188eu: clean up OnAction Date: Mon, 2 May 2022 22:06:43 +0200 Message-Id: <20220502200652.143665-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the OnAction function. Remove unused action categories. Use a switch statement instead of a table for the three remaining categories. Martin Kaiser (9): staging: r8188eu: action category ht is not used staging: r8188eu: action category wmm is not used staging: r8188eu: remove unused action handler prototypes staging: r8188eu: remove action_handler string staging: r8188eu: remove an unused category define staging: r8188eu: replace OnAction_tbl with switch-case staging: r8188eu: use ieee80211_mgmt for action category staging: r8188eu: use standard category defines staging: r8188eu: remove unused IEEE_* defines drivers/staging/r8188eu/core/rtw_mlme_ext.c | 62 +++++++------------ drivers/staging/r8188eu/core/rtw_p2p.c | 4 +- drivers/staging/r8188eu/include/ieee80211.h | 10 --- .../staging/r8188eu/include/rtw_mlme_ext.h | 16 ----- 4 files changed, 23 insertions(+), 69 deletions(-) -- 2.30.2