Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp203462rdh; Wed, 25 Oct 2023 22:43:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGki0vMwzoXDz5/KXP5SPK2iBEocliB/lKT720wxpvMt3DMg1w7mOv7W4qsDLxJotXw8bKX X-Received: by 2002:a25:7656:0:b0:d9a:3f66:1b16 with SMTP id r83-20020a257656000000b00d9a3f661b16mr3296784ybc.27.1698299025716; Wed, 25 Oct 2023 22:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698299025; cv=none; d=google.com; s=arc-20160816; b=u8RbKq0yv2vSMZin3shJS1KrKHS7Vr0RxKSreFKB7mAUA8WYDObF7kkSF8uombFKud RyAG0M6z7z81VmvZHUNQCY2zNSmeyne/EbIme5PDQDaM9IHa4G3Qoaa90EQpuY508pMG 3Vt/B+lKsrx0ZU4eo/Paq1zCsdm7X72LaJOYihJqxYW68k6rRoUaMcjjmj05XBYAg8P+ CgHF4mFWo56pGZ5DTcWI3KqF1OXaTkXErwcwZqVVuxDeSz1NNi25ObkNX1785ToOLESD OSzIoLUNl6TTjUUMPTf+fkZSOv9TvMgcLK1xV6VlRyxnKn9La7/gaGfXq/ehBztcFwaH wizw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=ZDrfNzJFy46QmelTeNDlluLSuWGgn7i99bhsTcEDtjI=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=cjS9rSH28muXhAFrCLGzwZVvQvFpnO5AuOszoIVhBteFWzG3PxSDZ7XmfDpGN0GKrY 8ZA6DgtKxucT6iMm9pSGbjFWWRNbaMYMPZoM5ky1N+IDRPmwjrzD2WsZP1bgSjElJ4zB YmwDRSx4LGA+OhjLh/64Gje0bFQ89ObPL3aWkAQx83dbV6LwbzltJ6Pl6KBBk0xWpuC1 k75CHnj5yDA4ksVE6/VS1hvXOsB2wWYniXhg8OGGtYVfDqgXsNxkSz2OTS/LCzHlKm92 dU9oXSm8JCTKOaokUlgU22q4r0amMnIju/6W6e00xU4fj5m2FGgC4bK9SoxJbFzGblZJ AZRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VGnahLKA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id e184-20020a25d3c1000000b00d7fd6a7d57esi12747838ybf.625.2023.10.25.22.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VGnahLKA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 315B4820D5FB; Wed, 25 Oct 2023 22:43:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233277AbjJZFng (ORCPT + 99 others); Thu, 26 Oct 2023 01:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233628AbjJZFne (ORCPT ); Thu, 26 Oct 2023 01:43:34 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8CC1A6 for ; Wed, 25 Oct 2023 22:43:30 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-507f63fcbf6so151067e87.1 for ; Wed, 25 Oct 2023 22:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698299009; x=1698903809; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ZDrfNzJFy46QmelTeNDlluLSuWGgn7i99bhsTcEDtjI=; b=VGnahLKAgQd7S/3y71nFizTewzsIo0+Iwkp7lhSOd4CurNc7uTwvmCbZyR/rvoWqIB aF/kVG+7GSCX/PPEhw34b78E4pG1NFjctF4oFxpHMDVj2GHZ1XNCbv1MSN2kshdy6yrt qhOhroMwLkzaMnn6zpGqV3MIhWNalt1AwYM89I92zjQ5HGQkSZb+EuF6va3NrBV4U2T8 La1397SdSbHzLMXlQcKa7Wz6ywl24PI+BUiN2XYoRlye7JRimcx3SDFrOPMs0kHZ6xrI D9K0mBSpdBx0chm1y8j8eLJL0mIrE9Xf0RKpcbIcHR9HoEbt7MH6OLTSvdokUwFXkB5Q 8ZsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698299009; x=1698903809; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZDrfNzJFy46QmelTeNDlluLSuWGgn7i99bhsTcEDtjI=; b=vtu9pjzC3sQZ3iJtMQBxea8rxTFCG9iqBtCuzsXOYRI65iqYt5Os4zIN1K1j3bMcHR QAQoWeqxk1HJTxa21IzHaZ+H8QwPc8qDWqcFpLad9sJHknZ9PCvdNanAZ6F3Cqg9vrwt 6a9G4bCOXT0XVswseBJrCLDv3N4GbYVCZ7CRAlBNJJ2U/tTeG1nS4qZSgdDFCMOGb299 yJhXpt9xyaYtAQyPX6C2H84KDgChjU77fln/xAsuAbxduahSuxVEimIlOKgUJBFLzGQh OGs1pFEo6fRhY+Jgc37PnbmnlJbDpNjD7QZWzzzeC0a9eakrWP3ZqB03L2I9OCDV3+9O T0wQ== X-Gm-Message-State: AOJu0YwBKa/pUDWOaAI2LNh/ralXcATiki/WjFzYfkwhLJ7bkYlWBrbp OPBRfz0aVLTfOxPbmVvTu+c= X-Received: by 2002:a05:6512:3a93:b0:503:65d:50c6 with SMTP id q19-20020a0565123a9300b00503065d50c6mr11832855lfu.4.1698299008632; Wed, 25 Oct 2023 22:43:28 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p579356c7.dip0.t-ipconnect.de. [87.147.86.199]) by smtp.gmail.com with ESMTPSA id e13-20020a50ec8d000000b0053e775e428csm10605787edr.83.2023.10.25.22.43.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:43:27 -0700 (PDT) Date: Thu, 26 Oct 2023 07:43:26 +0200 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 00/10] staging: rtl8192e: Convert array rx_ring[] to rx_ring Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 22:43:43 -0700 (PDT) Remove some functions that always return false or zero. Remove a loop that is always executed one time and convert arrays to variables. Remove some unused constants. Tested with rtl8192e (WLL6130-D99) in Mode n (12.5 MB/s) Transferred this patch over wlan connection of rtl8192e. Philipp Hortmann (10): staging: rtl8192e: Remove HTIOTActIsDisableMCS14() staging: rtl8192e: Remove HTIOTActIsDisableMCS15() staging: rtl8192e: Remove HTIOTActIsDisableMCSTwoSpatialStream() staging: rtl8192e: Remove HTIOTActIsDisableEDCATurbo() staging: rtl8192e: Remove loops with constant MAX_RX_QUEUE staging: rtl8192e: Convert array rx_ring[] to variable rx_ring staging: rtl8192e: Convert array rx_buf[][] to array rx_buf[] staging: rtl8192e: Convert array rx_ring_dma[] to variable rx_ring_dma staging: rtl8192e: Convert array rx_idx[] to variable rx_idx staging: rtl8192e: Remove unused constants starting with MAX_RX_QUEUE .../staging/rtl8192e/rtl8192e/r8190P_def.h | 2 - .../staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- .../staging/rtl8192e/rtl8192e/r8192E_phyreg.h | 62 +-------- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 131 ++++++++---------- drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 10 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 37 ----- drivers/staging/rtl8192e/rtl819x_Qos.h | 1 - drivers/staging/rtl8192e/rtl819x_TS.h | 1 - drivers/staging/rtl8192e/rtllib.h | 1 - 9 files changed, 67 insertions(+), 180 deletions(-) -- 2.42.0