Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp834704pxb; Tue, 12 Apr 2022 14:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw21clEW9kIogdhPZDSfLCvgZEAU2KHumXiMlHRWPPW+YWj4L4dRnmB6osxK0qcfs1iAOAM X-Received: by 2002:a05:6a00:18a2:b0:505:ccae:42f7 with SMTP id x34-20020a056a0018a200b00505ccae42f7mr10224440pfh.28.1649800069753; Tue, 12 Apr 2022 14:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649800069; cv=none; d=google.com; s=arc-20160816; b=Z654+BgnHICP0Y2S0BLYlB8665yS0qqk5TO4ObDpNDJGbOKGahMO//r8qQSV/rS5TP CAkEUc1wr5tz9TNtkejTf/YwXlv6Q7eJZSOgfKFYRN7LplkwCnnEK6BlGW/QaA6Ot4SH Cnx0BdRXYUCBB85Op2P+C2rVkXzcW5nNe+rlnlakjSRSmilAa6v9StKIzW8EDhZOcOPh 6Dzd2c9CvT02w97ZwVpOwQO8P45AmGbAcmJtz8pbwYrC3EdD8oWW4OjnBXyBGIfQQDCZ MYv6BlBNQdJ41ubD8umEU99ZEGaKLsfhEV+SUSKP/qmPjkpgdnae6xeIcN7xjk0NyG9W xvjA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H1U7ig0yIYDqqdZdu4wVkYgw4NSUR1m80doAifHbSXg=; b=KagvU6KmEnFquJ8ZJlSRo96ZP4fyWd+8aQXEGEdb+x7zhQCXbbEQkEVbp1XMj9HUSR EGZCEFIVSk94xDQfaS4tZv5up1XD19u/8qv7vfvOtzLDZWCUreWMbFUwtFC5LoRFGqDp hqki0Ha29FWO0rIGaRRRUx+o8q5rTowHJhNOOKF8/eL2fcJfceF+SD9JFA0OG8YHkygv bT49bMMP23Y5i75+IsBft3eioNuQ0wOfhd5jaUFyiB197Bh6JAEx4VsQLr18wbAoY1RQ 3qeVwqPjmrhvkNobJ9RcUuHPiHhKxTWVZN2X6VZ6c7SICh6WVdCCuH4tBwqhupDM+Wh/ C2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gVpK4lNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e8-20020a170902ef4800b001582d18c33bsi2858752plx.5.2022.04.12.14.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gVpK4lNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DBB70CC; Tue, 12 Apr 2022 13:46:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243674AbiDJQec (ORCPT + 99 others); Sun, 10 Apr 2022 12:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243625AbiDJQeU (ORCPT ); Sun, 10 Apr 2022 12:34:20 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7370165B1 for ; Sun, 10 Apr 2022 09:32:09 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id s8so12536623pfk.12 for ; Sun, 10 Apr 2022 09:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H1U7ig0yIYDqqdZdu4wVkYgw4NSUR1m80doAifHbSXg=; b=gVpK4lNxM7SmpfWWIq6ooT0wacd8j3RXrqoxFe8fhV0ureF9rZCnTWPLKZSKvZpiPO rlg+OUiCIEDO/lJRs95bKzafvIH6lTy+S8WB9dZcykiZ0jrUCBDEitQ5AXEvXpPtZbWR rZ7s3VH3O239WHcSmi5TOqN4U2J3ppVHi9LjYWkHPKBDCh4hJpQk8+/bOBP9lAPCwnK9 oh4lhM1wdxpryANakPH3swYUH6fI1n52GsXI6EEdHZ8Rcwn+wDgh1OzG72bkc5pYh336 a67AgupEomzdrRyBLksE6+DcyrssQQ8D6HqiJP4Vd3GfxEL4pe90Z3cbFJ+AEVcf4e5H TMKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H1U7ig0yIYDqqdZdu4wVkYgw4NSUR1m80doAifHbSXg=; b=efUVN8xJK6GCLR8EC1cKivhuxj4VLm51ePqj3kgv6fQLdtSAjA9Oryo79WMn5bafyo 5R1Jb5PsGerWodz/aaJmFr8qB/FEIxBDE3qISFpOWh8WjLx+cvoInIyizOkqeObdTX+z L52JiasqQUZOi6hWpckNpfOErl1/Z5NfWfh1c8kNW1k1ahelPFMpmho9CipQO+J8Bzk2 S3ShlxWVegh+vmPdmSgohZhN8dJ077f53NsXhqmvk6bmUPJZFFSX+QhcGRSHohK4ATWl cZVrNsqpdcLGY1PzCGBGfDrcVAIAuUK3+HQ3Qv3bF1SH+nb5GOkN3BBoteK7VNXKxRlD P5Qw== X-Gm-Message-State: AOAM530WG12gGiqsl6Ck5K7DhQlqi/s3CDY+/7t4oaAKNz5OGnE0Qnmv knPErHFuxFSBAk8I488gUcw= X-Received: by 2002:a05:6a00:238f:b0:4f6:b09a:4c63 with SMTP id f15-20020a056a00238f00b004f6b09a4c63mr29014047pfc.35.1649608329324; Sun, 10 Apr 2022 09:32:09 -0700 (PDT) Received: from makvihas.localhost.com ([2405:201:202b:15:606b:10e4:2085:6825]) by smtp.gmail.com with ESMTPSA id f12-20020a056a001acc00b004fb37ecc6b2sm31940021pfv.29.2022.04.10.09.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 09:32:09 -0700 (PDT) From: Vihas Makwana To: Larry Finger , Phillip Potter , Greg Kroah-Hartman , Michael Straube Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Dan Carpenter , Pavel Skripkin , Vihas Makwana Subject: [PATCH 6/6] staging: r8188eu: drop unnecessary wrapper rtw_free_mlme_priv Date: Sun, 10 Apr 2022 22:01:17 +0530 Message-Id: <20220410163117.3964-7-makvihas@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220410163117.3964-1-makvihas@gmail.com> References: <20220410163117.3964-1-makvihas@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NO_RDNS_DOTCOM_HELO, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Remove the unnecessary wrapper. Drop rtw_free_mlme_priv and use _rtw_free_mlme_priv instead. Signed-off-by: Vihas Makwana --- drivers/staging/r8188eu/core/rtw_mlme.c | 5 ----- drivers/staging/r8188eu/include/rtw_mlme.h | 1 - drivers/staging/r8188eu/os_dep/os_intfs.c | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c index f2a61c162..c09a565b4 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme.c +++ b/drivers/staging/r8188eu/core/rtw_mlme.c @@ -288,11 +288,6 @@ u8 *rtw_get_beacon_interval_from_ie(u8 *ie) return ie + 8; } -void rtw_free_mlme_priv(struct mlme_priv *pmlmepriv) -{ - _rtw_free_mlme_priv(pmlmepriv); -} - static struct wlan_network *rtw_alloc_network(struct mlme_priv *pmlmepriv) { struct wlan_network *pnetwork; diff --git a/drivers/staging/r8188eu/include/rtw_mlme.h b/drivers/staging/r8188eu/include/rtw_mlme.h index b5b1a0e10..4055a15e2 100644 --- a/drivers/staging/r8188eu/include/rtw_mlme.h +++ b/drivers/staging/r8188eu/include/rtw_mlme.h @@ -439,7 +439,6 @@ void rtw_join_timeout_handler (struct timer_list *t); void _rtw_scan_timeout_handler (struct timer_list *t); void rtw_free_network_queue(struct adapter *adapter, u8 isfreeall); int _rtw_init_mlme_priv(struct adapter *adapter); -void rtw_free_mlme_priv (struct mlme_priv *pmlmepriv); int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv); int rtw_set_key(struct adapter *adapter, struct security_priv *psecuritypriv, int keyid, u8 set_tx); diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index 448ea9533..adfc1e763 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -528,7 +528,7 @@ u8 rtw_init_drv_sw(struct adapter *padapter) free_mlme_ext: free_mlme_ext_priv(&padapter->mlmeextpriv); - rtw_free_mlme_priv(&padapter->mlmepriv); + _rtw_free_mlme_priv(&padapter->mlmepriv); free_evt_priv: rtw_free_evt_priv(&padapter->evtpriv); @@ -576,7 +576,7 @@ u8 rtw_free_drv_sw(struct adapter *padapter) rtw_free_evt_priv(&padapter->evtpriv); - rtw_free_mlme_priv(&padapter->mlmepriv); + _rtw_free_mlme_priv(&padapter->mlmepriv); _rtw_free_xmit_priv(&padapter->xmitpriv); _rtw_free_sta_priv(&padapter->stapriv); /* will free bcmc_stainfo here */ -- 2.30.2