From patchwork Fri Nov 24 21:31:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 169576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1548520vqx; Fri, 24 Nov 2023 13:32:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJNq8r95E4GzjQ+rpkI1MW+dhbve4mL85BlwDR/rqAoVXUU8GmS9lwTtP/lI884sAzuEcg X-Received: by 2002:a05:6a20:e11a:b0:181:15:5755 with SMTP id kr26-20020a056a20e11a00b0018100155755mr6107778pzb.56.1700861531443; Fri, 24 Nov 2023 13:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700861531; cv=none; d=google.com; s=arc-20160816; b=rw/3QtTQ0nYCpLqnxsDrynErKBejv7ZeTteTHM+wFgDFeqMA7vTpQjsy1RkZ+dpNAs 6Nh3mqGxiVgM8Qdxb/bbGgsAMF+TknL5idlG/mZ1kUGK7dOU3wDnP2sgYBbOwzMl+m44 WQNAO+jgZln6c0W7eHKhl+/tKUyhW8j5pe2sOET0g3RT8MQ2cAvQOPSL62RHIoaDAIY6 WoySDS8/XLqPorXEOQMV8HznsJuuHC+2GBSl6runxBI1uF5TEPq3YsW0kaP3zXGVYzC+ SdrloZHMPUFfb2o83BoexO9Kw8Adydl857fFQ88OLIvTPCLZovfN+mtCQe9Yb+cQ+7w/ zZHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=dob4ueyHhx+j/dqC0hM3DyfpnYphHI049VubfpO8Pec=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=v9H/T6qYC8ITK9XwWnUhjupAiKexcHw5HhJjb/JZgZx3aNkT4wsBNfk8wBEH/eGWl4 QZMkGrz+yu+7bHPVaqs7HVSxLegZJh5loeXG+XIh7yqzAzGBJDlohtnTrJoUtZ1LLFaW qREtfuA6WXlFunciKYnwlIxuRZKS24DfH0NF8PV6MwJGsdDBbhS8vXhX2iNDNxLSaoo+ R73SaPxRW1QEc6FrzaoV8C/HYX3p0Qd/2LoVH/mSDtFTf1FNFc4+DoGY7JE3CgyXRaY0 8PnjYCTSeeIiTIbQlnAkqzolL4WJga1RkNnUBHR0dWt2sYabnsECRXO+15TyDYn/8k7h 5mag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LhPUbYMw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id fc40-20020a056a002e2800b006be04b8c3basi4380694pfb.178.2023.11.24.13.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 13:32:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LhPUbYMw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 181EF81FD9FF; Fri, 24 Nov 2023 13:32:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231627AbjKXVbd (ORCPT + 99 others); Fri, 24 Nov 2023 16:31:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjKXVbS (ORCPT ); Fri, 24 Nov 2023 16:31:18 -0500 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F4819BC for ; Fri, 24 Nov 2023 13:31:24 -0800 (PST) Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5491de618b2so688475a12.1 for ; Fri, 24 Nov 2023 13:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700861483; x=1701466283; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=dob4ueyHhx+j/dqC0hM3DyfpnYphHI049VubfpO8Pec=; b=LhPUbYMwqqksET4UFhw6IoqcKNIBfEFPPKOPBQ9fkG5JIYKBn96BO2k2+egCXBffOs 4r70s5aK5I+ur1pV/Jg7usjMcblHY5zNRBXWPL1QWaptMeqgFmcHPdNKuyax7eEvRfYS RczymEq6mw3e8EbpbZ4sxIDxuSjUBkVH55YMiqRuqHa5yvx1DfTSPl8t1PwdLv+zF9lS iZFSD6BlOZEbYfIe1s+Avl+JnukQxkPlpwxF394b3pg9lkrMKMyJn0g/BPR2putt1Msk U3PEklq7Jrr5ydIZ39wzB82NH/wHWnQNFFqdUmhF99qg2bhzsMR1WbbR2PsHEnRgBGgo 9tJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700861483; x=1701466283; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dob4ueyHhx+j/dqC0hM3DyfpnYphHI049VubfpO8Pec=; b=xMrW41bwieMvjyOu2TmcAfjafGYxRsOS42w9JF+o/oJ9T78N0Hp21PHUHdLur/fVlY 75YUCQIpfrlY09HAlbfPH7v2W3Ou1oQCQ3uhc3qpJQVdWMoUvut5+F1a5AcgrreOhoY4 4ZgZLLk01J6z7WtWPlgiwwwgKWTBNl9FAeQ7+j31g+WQICeVwxS6DJmqYV87A4mFLVhW Lzuu2qE6SzDspql8ixbyYFL0+hQUPOWhinxCnDQ+WIdI72sO66cHyqI+K8NqNig71zUK IdnMg7Jbc453WT+CRdHGO4Ctqa5TPL2BJBbdt71Luq0aY0Nns7moUnm10y/qg5aZqvSA X/aA== X-Gm-Message-State: AOJu0Yz8GapR7Tq8pYOQaKmaKVO0l7xmWxiAcyWQCzKZgoQvGrk56z2H CRbHQjkKWC0663TAmhjwmqk= X-Received: by 2002:a17:906:3948:b0:a01:ee03:37ec with SMTP id g8-20020a170906394800b00a01ee0337ecmr2983066eje.3.1700861483322; Fri, 24 Nov 2023 13:31:23 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id lo20-20020a170906fa1400b00a041474d13esm2492176ejb.127.2023.11.24.13.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 13:31:23 -0800 (PST) Date: Fri, 24 Nov 2023 22:31:21 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] staging: rtl8192e: Remove unused function HTConstructInfoElement() Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 13:32:04 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783482581256996446 X-GMAIL-MSGID: 1783482581256996446 Remove unused function HTConstructInfoElement(). Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_HTProc.c | 16 ---------------- drivers/staging/rtl8192e/rtllib.h | 2 -- 2 files changed, 18 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c index da4cf6f25794..00273d709f3c 100644 --- a/drivers/staging/rtl8192e/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c @@ -328,22 +328,6 @@ void HTConstructCapabilityElement(struct rtllib_device *ieee, u8 *posHTCap, } } -void HTConstructInfoElement(struct rtllib_device *ieee, u8 *posHTInfo, - u8 *len, u8 IsEncrypt) -{ - struct ht_info_ele *pHTInfoEle = (struct ht_info_ele *)posHTInfo; - - if (!posHTInfo || !pHTInfoEle) { - netdev_warn(ieee->dev, - "%s(): posHTInfo and pHTInfoEle are null\n", - __func__); - return; - } - - memset(posHTInfo, 0, *len); - *len = 0; -} - void HTConstructRT2RTAggElement(struct rtllib_device *ieee, u8 *posRT2RTAgg, u8 *len) { diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index b7f4d7e2ea26..04433c79b3a7 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1760,8 +1760,6 @@ void ht_update_default_setting(struct rtllib_device *ieee); void HTConstructCapabilityElement(struct rtllib_device *ieee, u8 *posHTCap, u8 *len, u8 isEncrypt, bool bAssoc); -void HTConstructInfoElement(struct rtllib_device *ieee, - u8 *posHTInfo, u8 *len, u8 isEncrypt); void HTConstructRT2RTAggElement(struct rtllib_device *ieee, u8 *posRT2RTAgg, u8 *len); void HTOnAssocRsp(struct rtllib_device *ieee);