Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp461693pxr; Sun, 10 Apr 2022 21:14:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrXM1RaWIeC1dBqZeZAllqSRsTCq+9OmenVxjShp5zV1KyxjMbzzUVBSLyZP69oY1c6oN+ X-Received: by 2002:a65:524b:0:b0:383:1b87:2d21 with SMTP id q11-20020a65524b000000b003831b872d21mr24727688pgp.482.1649650462664; Sun, 10 Apr 2022 21:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649650462; cv=none; d=google.com; s=arc-20160816; b=oiOfjQQJATqmGIKUWzdcpgWws7FaS2sh8tZLG8RVW4U0Y7wb4+od87p+UVe+1wMLUQ 9p/YsQuyOPkNCIo3xSS9O0lZb4XEVv9Y6snk/uCn49iaYk7T6RXnMNcvVJGkRXcdNxw+ viujne6REeDVLQIbaGRVcLDf8L6UgYF81jsWyByexwSrVVgA5kPz3k8rTcjRtkaEbhCv 9BHDtFVXlW+71AtPFAv63V4pGtFD38hA0bstcH7jjZuZx5u5ffnBee1/YKM0lwWQWiA9 XBCpdHKv5H1GiMTOTkMgGgIg5cZTiKf2tjaVIjZfw5K94iSFHxO5mE7PhQADrOBEYNVU PL9w== 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=u9rqV99953emrj7ssEIoOOZLspKEgCoMFpGDn+F1RrE=; b=Nt+aMzCfk0k/XOeKdbdKJaYl8zsw6L5Xxsia7TnhmqT5Ir3ASyuYVTHmrRtxT0NF9E e9CawrQUgexcXJszMK9POqijnmhYEqlxlRso99IHdbtCS0SVoI38I1CNUCMdoCdVruP/ yNH3N+3n49OMUcG2apDttR14tPNLjnZahNnd5Ap7gKzgr02UrSJHjsbadUhV0t14bFDN 3KmIKCWS9sLMg+ZyKsO6uX7AjoZ1n9CjvhDgAbSa0l7bg2uH2EPgeQQyjUXBiWfzkw2b dL+O7jWMMad9egDKOqjGOhyXmRLmh38Jmf7tC96xp+ERqkb+dAI5syQ4xMPWnAd0QilC gLrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Pzi94e4P; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020a17090a8b8d00b001bed39e61cesi7653917pjn.23.2022.04.10.21.14.08; Sun, 10 Apr 2022 21:14:22 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Pzi94e4P; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243603AbiDJQeS (ORCPT + 99 others); Sun, 10 Apr 2022 12:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243605AbiDJQeN (ORCPT ); Sun, 10 Apr 2022 12:34:13 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BDE313D56 for ; Sun, 10 Apr 2022 09:31:59 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id j17so11093972pfi.9 for ; Sun, 10 Apr 2022 09:31:59 -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=u9rqV99953emrj7ssEIoOOZLspKEgCoMFpGDn+F1RrE=; b=Pzi94e4PpDZb5dCXz3nOcQirN1WWnCfBSnZLadD3vR0Ksctj63D2PqayZL7k4oG97f FLKr4DEWu5Lr5W0NpB/FuBLMvFDF5GS21FeLZjKk9ehFt2HXbzV+yMaVFh2iPJahsixA vBSXLPi8yVdTZusIcTMRNSBzBmZUbk8/4TxsOasguNJMk91n0kpRa9QM8WjJKyPZtwWm pKKRVWJi4CQTNmZVsgKP+LkIxuanA89K/oWq9NhZQIKYCNaVvqJnXNaL5efqlLxckJ5H jM066WxV9vXtQUXDZTv9vNZ1ogM6QkQs65QRgRFNhBaMynBWnl/LDjT+g3JEogDc/0zc FXYg== 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=u9rqV99953emrj7ssEIoOOZLspKEgCoMFpGDn+F1RrE=; b=IfJFGQnrGPNDm8wRKoKwVnCUM1HUSCE/i1VqhVtrnWSORi5j6OiFWb3BrGXhs+O4RC c0E8wGMHMV3NXsBagtf74/Zz5zT0Bry/VgZTLJ4bPJJD597nHfLrqUqat982wgK07fC5 Yr/IsbEAsmNpmUs8/fJ2YgVFhZc+tGRTEAUb0QAGLjw1e+hjGLWnoaXyDSXqdHv3+UWK WVrbfl1Cn79SQK9h+qrHfbsSXkv5qX2rmPiRjCLOXQob0nvOlT2rzw6kGkuymN0D16o5 1mlUc4DS63Ui78S+Bc2K+QOU/HvlrI59j0OjXyxVRrXjX3w3YmMwUZq3szYWTeFyAcxY fkRw== X-Gm-Message-State: AOAM533rG51n/t05Fs0wuRrhTHyGNy/oG6BkTwzLSLX0MYFy990ssa8o cH2QUpxSbht9GdodxqwYph4= X-Received: by 2002:a63:3f84:0:b0:381:f11:20d7 with SMTP id m126-20020a633f84000000b003810f1120d7mr23502541pga.612.1649608319361; Sun, 10 Apr 2022 09:31:59 -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.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 09:31:59 -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 3/6] staging: r8188eu: drop unnecessary wrapper rtw_init_evt_priv Date: Sun, 10 Apr 2022 22:01:14 +0530 Message-Id: <20220410163117.3964-4-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=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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. The logic of rtw_init_evt_priv can be moved to _rtw_init_evt_priv. Signed-off-by: Vihas Makwana --- drivers/staging/r8188eu/core/rtw_cmd.c | 11 +---------- drivers/staging/r8188eu/include/rtw_cmd.h | 2 +- drivers/staging/r8188eu/os_dep/os_intfs.c | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c index d843e9997..ac6e710e5 100644 --- a/drivers/staging/r8188eu/core/rtw_cmd.c +++ b/drivers/staging/r8188eu/core/rtw_cmd.c @@ -58,7 +58,7 @@ int _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv) static void c2h_wk_callback(struct work_struct *work); -static int _rtw_init_evt_priv(struct evt_priv *pevtpriv) +int _rtw_init_evt_priv(struct evt_priv *pevtpriv) { int res = _SUCCESS; @@ -139,15 +139,6 @@ static struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue) return obj; } -u32 rtw_init_evt_priv(struct evt_priv *pevtpriv) -{ - int res; - - res = _rtw_init_evt_priv(pevtpriv); - - return res; -} - static int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj) { u8 bAllow = false; /* set to true to allow enqueuing cmd when hw_init_completed is false */ diff --git a/drivers/staging/r8188eu/include/rtw_cmd.h b/drivers/staging/r8188eu/include/rtw_cmd.h index ab47d3785..7edce0f88 100644 --- a/drivers/staging/r8188eu/include/rtw_cmd.h +++ b/drivers/staging/r8188eu/include/rtw_cmd.h @@ -85,7 +85,7 @@ int rtw_cmd_thread(void *context); int _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv); void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv); -u32 rtw_init_evt_priv(struct evt_priv *pevtpriv); +int _rtw_init_evt_priv(struct evt_priv *pevtpriv); void rtw_free_evt_priv(struct evt_priv *pevtpriv); void rtw_evt_notify_isr(struct evt_priv *pevtpriv); u8 p2p_protocol_wk_cmd(struct adapter *padapter, int intCmdType); diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index c611e9246..f041c3d87 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -473,7 +473,7 @@ u8 rtw_init_drv_sw(struct adapter *padapter) padapter->cmdpriv.padapter = padapter; - if ((rtw_init_evt_priv(&padapter->evtpriv)) == _FAIL) { + if ((_rtw_init_evt_priv(&padapter->evtpriv)) == _FAIL) { dev_err(dvobj_to_dev(padapter->dvobj), "rtw_init_evt_priv failed\n"); goto free_cmd_priv; } -- 2.30.2