Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7556540rwl; Fri, 30 Dec 2022 10:09:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXsGwx+bLmir/n5L1aARd4+O7lM7FiHde0ir+0nBJXB/iDwNRwcS8+VOLyvTF8zXsAe6rp1e X-Received: by 2002:a17:90a:7404:b0:223:de03:7297 with SMTP id a4-20020a17090a740400b00223de037297mr35626767pjg.10.1672423772636; Fri, 30 Dec 2022 10:09:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672423772; cv=none; d=google.com; s=arc-20160816; b=h3+x4Sh6zrvH44GFgMQN0AR9fFlNXORaxaER06btF+1hO5vUioFm7G7DCxebWwS1gK XlF1cC2oN+Nm0fZzpaOm8kC2/oWUb/9+FVwGJsF852McPgrtSzGmo9x+82Slup8naD0C udZVaUt/S4LTvmMbYCn0WXCJQJAnuqFQYE8LFDm7T714k47Lswyr4teyown71rEGUKlv jMs7IoLLdINWCpWJMRnH2Ej7fhfZcBxp16dVb1Y45sphaT8w95dyKnKbN7NK9gbTfH/8 moWIZGnfLLj7MOv+W/dq7UvvzEWsFV6VXPlgplMdByc33TNxQjYv5Zh9n/LKintm7ZgA ycSA== 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 Return-Path: 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.09.15; Fri, 30 Dec 2022 10:09:32 -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 + 63 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 Content-Transfer-Encoding: 8bit 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 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; -- 2.30.2