From patchwork Fri Dec 30 18:06:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 37740 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3008646wrt; Fri, 30 Dec 2022 10:08:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXv94BW/qodj0SlLnxsnHPqX/UZYCo7VpxASxgjexCJ9/7oSGQOAjl6X3L9eWlU+F4d4AVEf X-Received: by 2002:a17:90a:30c:b0:226:42ea:28cd with SMTP id 12-20020a17090a030c00b0022642ea28cdmr2919732pje.16.1672423731206; Fri, 30 Dec 2022 10:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672423731; cv=none; d=google.com; s=arc-20160816; b=KzwKpQ5MMMLwZXSzy00l4Qgd8hROP6wqsfY1tvw+X7HjGF+pno4ollQBtsFDi1k/fG DyX4HRwtwVzT5AhVgGdIlZyo1zyp8tvWvF+864CnMjtyPiptREFvtB4IAx88LL/+aQAi w8ogWeLddfFQeG+00p1l51ua7fT3KYjQtT4JTGK9eEqFW6yu20xx0SvcudQSeazd4rK/ Le9Jg++msKyH8Q0xs5VXhqEUqC/GbWmhLJcTnWGZtg8e2TZ6iuxpiW8oMlxCUaikH0Ba 6Bwk0C6ETzQsn1nVOGXUvH0ecXajk1anwU/fMhrQFF3V3qcJf7y2oDga97Upbg+4maxv rd9g== 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; bh=NvPkqCIfxLM80DDWKmbboo6wRRJbRJ+jDsVnRw9kG2I=; b=pP1x5z6ixT1b+315sufszLNGJS677ehX8Gfmh0yMhqaJbyQH4tPzSYJLvjiJxcaA89 cPKEQDWHnHChhXUxqQD3e5rRbB7g0QyNSZUo/DTPg1tpGZqNSD+oNqCf6ziHCvfLEjtX Tc4fBblDDK/k86PPOg3dEdk+9GmhSrVy3rXoOcP+VbwgobOJJI+fUTzuV3AYl7HqYWjI 9SWZazkrnnHZjOKmbiaCk8sjEP6zE2ztlkJNeXJubQxvOG+8oPK45eO12UXrxsZGCiJ+ WgBYCsmnRhcYkczgDeWY1T5c0q/wIfqDT6BEq/OK0iOiXA8b0CgqDP0VD3qOQ6E1D7bT sFZg== 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 v15-20020a17090a898f00b00223facc5d2csi21509492pjn.162.2022.12.30.10.08.39; Fri, 30 Dec 2022 10:08:51 -0800 (PST) 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 S235534AbiL3SH7 (ORCPT + 99 others); Fri, 30 Dec 2022 13:07:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235477AbiL3SHf (ORCPT ); Fri, 30 Dec 2022 13:07:35 -0500 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 B66961C90E for ; Fri, 30 Dec 2022 10:07:22 -0800 (PST) Received: from dslb-188-097-208-179.188.097.pools.vodafone-ip.de ([188.97.208.179] 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 1pBJmo-0004rR-0S; Fri, 30 Dec 2022 19:07:18 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 15/20] staging: r8188eu: terminate_xmitthread_sema is not used Date: Fri, 30 Dec 2022 19:06:41 +0100 Message-Id: <20221230180646.91008-16-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221230180646.91008-1-martin@kaiser.cx> References: <20221230180646.91008-1-martin@kaiser.cx> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753663386212224144?= X-GMAIL-MSGID: =?utf-8?q?1753663386212224144?= Remove terminate_xmitthread_sema from struct xmit_priv. This semaphore is initialised but not used. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_xmit.c | 1 - drivers/staging/r8188eu/include/rtw_xmit.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_xmit.c b/drivers/staging/r8188eu/core/rtw_xmit.c index a3dccfa4d843..ca6a1f4298a4 100644 --- a/drivers/staging/r8188eu/core/rtw_xmit.c +++ b/drivers/staging/r8188eu/core/rtw_xmit.c @@ -69,7 +69,6 @@ int _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) /* We don't need to memset padapter->XXX to zero, because adapter is allocated by vzalloc(). */ spin_lock_init(&pxmitpriv->lock); - sema_init(&pxmitpriv->terminate_xmitthread_sema, 0); /* * Please insert all the queue initializaiton using rtw_init_queue below diff --git a/drivers/staging/r8188eu/include/rtw_xmit.h b/drivers/staging/r8188eu/include/rtw_xmit.h index 83638dede6e7..ef1b7123e557 100644 --- a/drivers/staging/r8188eu/include/rtw_xmit.h +++ b/drivers/staging/r8188eu/include/rtw_xmit.h @@ -257,7 +257,6 @@ struct agg_pkt_info { struct xmit_priv { spinlock_t lock; - struct semaphore terminate_xmitthread_sema; struct __queue be_pending; struct __queue bk_pending; struct __queue vi_pending;