From nobody Sun May 10 22:40:29 2026 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 10760C433EF for ; Thu, 21 Apr 2022 20:05:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1392182AbiDUUIC (ORCPT ); Thu, 21 Apr 2022 16:08:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1388154AbiDUUIA (ORCPT ); Thu, 21 Apr 2022 16:08:00 -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 B6B704C430 for ; Thu, 21 Apr 2022 13:05:09 -0700 (PDT) Received: from dslb-178-004-168-011.178.004.pools.vodafone-ip.de ([178.4.168.11] 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 1nhd30-0001uQ-5S; Thu, 21 Apr 2022 22:05:02 +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] staging: r8188eu: remove OnAtim Date: Thu, 21 Apr 2022 22:04:49 +0200 Message-Id: <20220421200449.191983-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove the empty OnAtim function. We can set the function pointer in mlme_sta_tbl to NULL if no action is required for this management frame subtype. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/= r8188eu/core/rtw_mlme_ext.c index db61acc914d1..190de0b59c42 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -25,7 +25,7 @@ static mlme_handler mlme_sta_tbl[] =3D { NULL, NULL, OnBeacon, - OnAtim, + NULL, OnDisassoc, OnAuthClient, OnDeAuth, @@ -1479,11 +1479,6 @@ unsigned int OnDisassoc(struct adapter *padapter, st= ruct recv_frame *precv_frame return _SUCCESS; } =20 -unsigned int OnAtim(struct adapter *padapter, struct recv_frame *precv_fra= me) -{ - return _SUCCESS; -} - unsigned int on_action_spct(struct adapter *padapter, struct recv_frame *p= recv_frame) { unsigned int ret =3D _FAIL; --=20 2.30.2