Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4913799pxb; Tue, 5 Oct 2021 13:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhk28EPW+33fAneqdMJU5/kqGeflJjWbbPpYi/eFYYG/VRFBcFPmv5+IGy4BKIUitmsN5l X-Received: by 2002:a50:eac4:: with SMTP id u4mr28005289edp.259.1633464689276; Tue, 05 Oct 2021 13:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633464689; cv=none; d=google.com; s=arc-20160816; b=dnF2xAhcaPkM99TXYqySCkGHucf0n9MPHk/fGYgC8rCUWjU5XQSesWcHA4B8PA2itb LXVSSmZt6enpHsvqcu3knOFWza30gKes+utuszvhEVokijA+liZi+k52q8uPB9J3SJOg Zo+V16oKpo8gzbsqrqzJUhXACKnqsiV0g1a7rCzgwV61mdF9JSzVDqFxzlWkHNwJP6iv QBut7VLbllCod2qgC7sGbLIF63sKqEn5K3NNIbW0iqBTTPmpqiF8dE/gov1omZsQmkKu EqXNkjQj2WZICmoSikgMABFDFN6KaMR3jd/F70w0XcuRpP5Kio+LLA69JsDzwMTQYOOo rpHA== 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=ExyIwOankx/Meg7j2PGrltArk9HfjIZjDJ0hqfmg7jE=; b=yNBK0P4KYtoIsrCoW+RZiH6xR7sMvKrd8VDUdsa4q+HvZBnMkBxqD+0MpceEY/PjkR 9GiGCFX0pgE+YhY7uQ+Ku6cozuhJuIlydMzCmsy2Fl+SxTwv3vKmgAqXU+5Md5is/3Pw fsSu59E+ObaguBRYE/Qw+uffdz5hI0MVZXyN5oruYswAN429nBBToDN5jhnH5he+02gD B1un79mi/Sq1eISZJyq/4D7lHtNOmCYzYtpSNuLs532Rk6cCqh0/cxXwK38hY2FXN9DX qf29O4j/igEnjTUJmXkhOp67yeh3zRGUhoOPLgTDo1QsY00/UojOHfwSkFpIjmDPB95Q ytbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt25si16448280ejb.780.2021.10.05.13.11.04; Tue, 05 Oct 2021 13:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235581AbhJEUKo (ORCPT + 99 others); Tue, 5 Oct 2021 16:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235526AbhJEUKm (ORCPT ); Tue, 5 Oct 2021 16:10:42 -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 612B0C061749 for ; Tue, 5 Oct 2021 13:08:51 -0700 (PDT) Received: from ipservice-092-217-085-112.092.217.pools.vodafone-ip.de ([92.217.85.112] 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 1mXqk3-000847-9p; Tue, 05 Oct 2021 22:08:47 +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 4/9] staging: r8188eu: remove unused IntrMask Date: Tue, 5 Oct 2021 22:08:16 +0200 Message-Id: <20211005200821.19783-4-martin@kaiser.cx> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211005200821.19783-1-martin@kaiser.cx> References: <20211005200821.19783-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The IntrMask array is set but never read. Remove it. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/hal/usb_halinit.c | 3 --- drivers/staging/r8188eu/include/rtl8188e_hal.h | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c index f71f25e234ab..bd3ba6ab364f 100644 --- a/drivers/staging/r8188eu/hal/usb_halinit.c +++ b/drivers/staging/r8188eu/hal/usb_halinit.c @@ -119,18 +119,15 @@ static void _InitInterrupt(struct adapter *Adapter) { u32 imr, imr_ex; u8 usb_opt; - struct hal_data_8188e *haldata = GET_HAL_DATA(Adapter); /* HISR write one to clear */ rtw_write32(Adapter, REG_HISR_88E, 0xFFFFFFFF); /* HIMR - */ imr = IMR_PSTIMEOUT_88E | IMR_TBDER_88E | IMR_CPWM_88E | IMR_CPWM2_88E; rtw_write32(Adapter, REG_HIMR_88E, imr); - haldata->IntrMask[0] = imr; imr_ex = IMR_TXERR_88E | IMR_RXERR_88E | IMR_TXFOVW_88E | IMR_RXFOVW_88E; rtw_write32(Adapter, REG_HIMRE_88E, imr_ex); - haldata->IntrMask[1] = imr_ex; /* REG_USB_SPECIAL_OPTION - BIT(4) */ /* 0; Use interrupt endpoint to upload interrupt pkt */ diff --git a/drivers/staging/r8188eu/include/rtl8188e_hal.h b/drivers/staging/r8188eu/include/rtl8188e_hal.h index fc6acbba17e7..bfe32864ded6 100644 --- a/drivers/staging/r8188eu/include/rtl8188e_hal.h +++ b/drivers/staging/r8188eu/include/rtl8188e_hal.h @@ -356,7 +356,6 @@ struct hal_data_8188e { /* Interrupt relatd register information. */ u32 IntArray[3];/* HISR0,HISR1,HSISR */ - u32 IntrMask[3]; u8 C2hArray[16]; u8 UsbTxAggMode; u8 UsbTxAggDescNum; -- 2.20.1