From patchwork Sun Nov 19 22:15:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Hortmann X-Patchwork-Id: 166896 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1858642vqn; Sun, 19 Nov 2023 14:16:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjkFX8+flhVDfimogAxvf/L/KxhxObqlOgFXFQ7brosGX4YdRwVurZgqxzOvOgIMOpBPgW X-Received: by 2002:a17:90a:5994:b0:281:4fa7:7ab0 with SMTP id l20-20020a17090a599400b002814fa77ab0mr3164690pji.24.1700432162589; Sun, 19 Nov 2023 14:16:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700432162; cv=none; d=google.com; s=arc-20160816; b=q14y/qACd8cyrpGjZ/L82QXhj40zv51seMiB4JxaPpfmxF+mMnpkeqf0nJqCHNQeln FsjSAgjCZtwSz3OfttAAimIm+X9zKmfhwGDXp9MlvDHQA8IWYZmfRLv9xrAiUb4Gg8r9 KpSd8xcJAI8NazNABJR48KrFSpWEhBvYJ2nv5uAcQC/gpxKV9n/QL0B806fvXC6onyDU 5vVVYFrpUXhlJAASwa8KGIHDaT6v4lCIF1ZlFVKB9W/QnpWPBu7gqfC8PrMEQIY+Hn8L iT52xFgX+qddtORx0NSh4zpeDWsHvWQIzggGxwpuh0cgUxqNE3f7uArk6qexeaprXfaK YFcA== 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=FBjgqP02grvuhK+DBWx2eCwwUqM0RvQ4/hJhGy33ZEM=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=qOS08vTdBJC7Ubu8xLtmGpZNGrcXR0ZXbYcIr0QS0DDqNBdL901T0jRGcZKJX9MIjc X5n66ClDEz8FiZ4PG1SP1c2HYV700TAyFjG6HsDiDfHoNU7cRQhcEgwNXMGF4qYJHKi6 Tpub0kNg5McBoS3GyROB4zILFoklg92tCJYNbGNI5zL/agj0hsjLQ5sjFfrk692q7sgD s48+sr4/KG4PHNuxVQhN9YIuaL2TvSc/07/4zxZE7YCYNdhGz2H428W2II+7/V7DdF+9 zhpu+8w5iTUiKSI+JIeVPYMl24CwDsx8MW/lUxiapdEvUp+7BSGYKbqm6YbYepp+O+9z JKFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M736zl4d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id rj5-20020a17090b3e8500b0027749a1fe74si7101631pjb.182.2023.11.19.14.16.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:16:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=M736zl4d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 342A78063BF0; Sun, 19 Nov 2023 14:15:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231799AbjKSWPc (ORCPT + 28 others); Sun, 19 Nov 2023 17:15:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231787AbjKSWPX (ORCPT ); Sun, 19 Nov 2023 17:15:23 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23CFC12D for ; Sun, 19 Nov 2023 14:15:14 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-408434ce195so10205325e9.0 for ; Sun, 19 Nov 2023 14:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700432112; x=1701036912; 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=FBjgqP02grvuhK+DBWx2eCwwUqM0RvQ4/hJhGy33ZEM=; b=M736zl4dlOdlC50+k1J76gPktOl1YCJUrqarqc82756GcXcrvA73zsEViSV2QVqYX5 TpNFofVC6qc0k4nUAnkNaXaiqIac2yeDV4qDCq2+wLH9F9C+FFn5sYFz97MkhKBmuiFX J8mtIlWR9sUiF2ToF/2hNSx7WRjCsZiUHA1wwV9N43qNsgrIDaBwJaw3vTXTOWXSmlTT gzPr4eoJ3rv4GRu1VLkAIDhfEzow8Bu5cMBD5El+0gLMZeHQYngUnp3ljXnxjGkAlTHu xUYkthLBJ+7rkTAOjOEYNXBs0KIwkkFw1JvFgv1Y9GqmsaZHtmQoVhAxuyhQfzwD7F9e Xlog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700432112; x=1701036912; 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=FBjgqP02grvuhK+DBWx2eCwwUqM0RvQ4/hJhGy33ZEM=; b=a6DHStp0gE2wqVTF3pLCrjdEn52GbJRo9f71SuXMu9SjGfxRH4z4GFzA30D/9RAfJj WdjkRzMFfyQ5jUhwXDR9c4gFQCz/8Ln6D1MydWQZGNVSqV5ey/C/IOPPSBDVguim52p/ u/SqzeANXyh29HCjBf8qHPImOyMxRSnC5XfC9PH2+rFX9jnyCroNQFL4HkRaBTtNll22 yr7cgzlZQhx4zGJHvRWFF3sDOTymjQ+i9t5bjaHu5b0EZeWECVuypCdkN8Ez+/iuYxAg KPKq1nKjR55yleU+8wxNDw6akn37rLNFkjKVdgCHWbIdzJwBmufq28WtOtnW3fLjt+n0 qGSw== X-Gm-Message-State: AOJu0Yziw2z5lPTPvIVUBiFBr/vdTsb5TXRRAydP6YMxZRbTFs+z3W/C Ol11ffH7qGcn41pmE/lJRfA= X-Received: by 2002:a5d:5588:0:b0:32f:820c:44b0 with SMTP id i8-20020a5d5588000000b0032f820c44b0mr4468016wrv.0.1700432112255; Sun, 19 Nov 2023 14:15:12 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id s5-20020adfdb05000000b0032d8eecf901sm9221008wri.3.2023.11.19.14.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 14:15:12 -0800 (PST) Date: Sun, 19 Nov 2023 23:15:10 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 06/14] staging: rtl8192e: Remove unused macros IS_EQUAL_CIE_SRC and friends Message-ID: <6d514e946983fb8ef4a3d7d3cb2774261a593d2f.1700431464.git.philipp.g.hortmann@gmail.com> 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 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]); Sun, 19 Nov 2023 14:15:46 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783032355186153713 X-GMAIL-MSGID: 1783032355186153713 Remove unused macros IS_EQUAL_CIE_SRC, UPDATE_CIE_WATCHDOG, UPDATE_CIE_SRC and IS_COUNTRY_IE_VALID. Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/dot11d.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index 0ca803be3965..fd0a2df189bf 100644 --- a/drivers/staging/rtl8192e/dot11d.h +++ b/drivers/staging/rtl8192e/dot11d.h @@ -52,15 +52,6 @@ static inline void copy_mac_addr(unsigned char *des, unsigned char *src) #define GET_DOT11D_INFO(__ieee_dev) \ ((struct rt_dot11d_info *)((__ieee_dev)->dot11d_info)) -#define IS_COUNTRY_IE_VALID(__ieee_dev) \ - (GET_DOT11D_INFO(__ieee_dev)->country_len > 0) - -#define IS_EQUAL_CIE_SRC(__ieee_dev, __address) \ - ether_addr_equal_unaligned( \ - GET_DOT11D_INFO(__ieee_dev)->country_src_addr, __address) -#define UPDATE_CIE_SRC(__ieee_dev, __address) \ - copy_mac_addr(GET_DOT11D_INFO(__ieee_dev)->country_src_addr, __address) - #define GET_CIE_WATCHDOG(__ieee_dev) \ (GET_DOT11D_INFO(__ieee_dev)->country_watchdog) static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__ieee_dev) @@ -68,8 +59,6 @@ static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__ieee_dev) GET_CIE_WATCHDOG(__ieee_dev) = 0; } -#define UPDATE_CIE_WATCHDOG(__ieee_dev) (++GET_CIE_WATCHDOG(__ieee_dev)) - void dot11d_init(struct rtllib_device *dev); void dot11d_channel_map(struct rtllib_device *ieee);