Message ID | 1f91cf8145b304b09b37734a2a504da394833378.1700296319.git.philipp.g.hortmann@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp1064968vqn; Sat, 18 Nov 2023 00:52:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQIp7/6gWIGTCvDqwqkIyRqUuu4LuO6Kq7854q4qdkNuRYI4N/7R+YBymYZ4tXKcMCkAaD X-Received: by 2002:a05:6a21:6da2:b0:152:4615:cb9d with SMTP id wl34-20020a056a216da200b001524615cb9dmr11886793pzb.12.1700297572264; Sat, 18 Nov 2023 00:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700297572; cv=none; d=google.com; s=arc-20160816; b=cI7LN+AjbndsYg6iEbhRZY2jz0T3pyr3R0Q+398sn5vQTzqz38yyKLoDE3J6x+IVLj 1YzVgqXuSBlTLClwzpiBF2sAhiD1P0dj/kT48u4wREYPQvvq5Kp5DJUR4C+V40wg4ju2 ArOke4xKwjhGF3Ix3S+SChBpVh3mmngidsrvOt7p1UbUkOYC8wdSIJ0P8sBeIfrc6PvS ghAJISP2/YQUtJxEdj2Y7MjFKOwNste124Y/e4GlN4l6Htk5o3bjrzNzPgwdbc5vcaQO 5K+HcJiYaO1BUE4kQBr9iY0tODz17vjtNx+ZSjMK5obOR3vdRc3/XlYoDtAmkpYEh6hY 7Kmg== 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=y3T+DN+4X901BSZo7/K9QB8FTvLJTfF9SbWoEo2JZ34=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=0QSS8VZb9EBKYvgakMQNFviZqz63Zg0GC0O/g/KLehcPzkPKOuljX5YRD/pysdFfRO mNPON3IdmHucC+14gx064/8t5YOxvakdBX6pSmhOZ9TjHYDyQcJbk2ZVHrjUZ+wRVF+5 y3/dJrKgQNTlry/N7i+4ho/9KFUAlqwgJtW+mnCUtl0HzWBAAKR+gAEpLRqrvKAXqKp8 Y+m1FCxOd2j2j16S4HTr/1f6vhrFcuEdk6cp14p8rRQ4huOg54YdBVPXCnwL+LoxiM0S qK4kc72TPJRSSpdmMXr7PxL+ocLAJ4ZUhBmYU24w3YN6VxQfdM+3Frg7btB5HFtp8ssg xjFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VSKEaj37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l22-20020a656816000000b005c200b11630si3667627pgt.45.2023.11.18.00.52.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 00:52:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VSKEaj37; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 02A76821C5D1; Sat, 18 Nov 2023 00:52:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232760AbjKRIwR (ORCPT <rfc822;jaysivo@gmail.com> + 29 others); Sat, 18 Nov 2023 03:52:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233191AbjKRIv5 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 18 Nov 2023 03:51:57 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A9619BA for <linux-kernel@vger.kernel.org>; Sat, 18 Nov 2023 00:51:51 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-54115c72f78so784659a12.1 for <linux-kernel@vger.kernel.org>; Sat, 18 Nov 2023 00:51:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700297510; x=1700902310; 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=y3T+DN+4X901BSZo7/K9QB8FTvLJTfF9SbWoEo2JZ34=; b=VSKEaj37wj56DgcMQgxrJVa6jorGo+BRWEDPK8oRDqiAf4V1SCm7JVVitmzj832Ox4 AKNJMcr2LS9tFONBF/pAyLRsxcq5vQNJ2NupiF5I0372HMWk8OgiXeAY7VuabIzkwZJ3 mMOHGhBCFXobANKzbx1kUbfMxZuMo3uJTjW2nminmUEvWA70+1udRHu/Y7N1wjOcK7KN nA0Pu9hd+IX98b9SUJzGxk9/ijuxzOfRNjFNP9OH2pwsMkvoDe9vbBfxqgabPw4QR0Fj CAO0cpG15T0CRAkGjATqJYUXrXts1Z/EHjYad5MWyGnlkOH47h+KOaeMsglxB9Lgn7xx F4Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700297510; x=1700902310; 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=y3T+DN+4X901BSZo7/K9QB8FTvLJTfF9SbWoEo2JZ34=; b=iJPtwIjl2/HZQnpPb2yRYrHY26L8F0bF6QT3i21SMuW8Hf3T154uE2vYoIsMO40x29 YUwAEJOCHmKYSQLnfxyv9OPTsmsfCB/wbFY6hPcY5kjfs5ru2YFtnBSKw25zt6azMWeB qkrkbt6d2ZAJpjma0OoJf5wLYU/22ludp1FL4kha0kA4VZk+m7IUFNHlTxDIivNty2Cw wAMIk6cuHAcFulfPclFkbenP8VY+utBXiUreXAB3nXd/uz4oIRIRTY7yU/m7/J2WBx6z AjVih3QP9xWqg9zaR/RVJEku9Qgfre1GPa6ghEsfSCtmmY1PN3FCWD7UXYNZRTUcB8iZ JDLg== X-Gm-Message-State: AOJu0Yz54pHPTsMqWQXlQ5juZujSpSZohs62LkJJwDaf08pfHrgyOVTI g029teLHOP4Z/3HZ43mUOjs= X-Received: by 2002:a05:6402:797:b0:544:3944:d7cd with SMTP id d23-20020a056402079700b005443944d7cdmr1236784edy.2.1700297510204; Sat, 18 Nov 2023 00:51:50 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57ba2f20.dip0.t-ipconnect.de. [87.186.47.32]) by smtp.gmail.com with ESMTPSA id o9-20020a509b09000000b0053deb97e8e6sm1584438edi.28.2023.11.18.00.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 00:51:49 -0800 (PST) Date: Sat, 18 Nov 2023 09:51:48 +0100 From: Philipp Hortmann <philipp.g.hortmann@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 07/10] staging: rtl8192e: Remove equation to check limits of channel Message-ID: <1f91cf8145b304b09b37734a2a504da394833378.1700296319.git.philipp.g.hortmann@gmail.com> References: <cover.1700296319.git.philipp.g.hortmann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1700296319.git.philipp.g.hortmann@gmail.com> 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 agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 18 Nov 2023 00:52:49 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782891226944368257 X-GMAIL-MSGID: 1782891226944368257 |
Series |
[01/10] staging: rtl8192e: Remove unused return value of rtl92e_set_channel()
|
|
Commit Message
Philipp Hortmann
Nov. 18, 2023, 8:51 a.m. UTC
channel_plan is constant COUNTRY_CODE_WORLD_WIDE_13. Remove equation to
check limits of channel as those are always in limit.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/dot11d.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index d0b7332645be..bb7b5c793b26 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -51,7 +51,7 @@ EXPORT_SYMBOL(dot11d_init); void dot11d_channel_map(u8 channel_plan, struct rtllib_device *ieee) { - int i, max_chan = 14, min_chan = 1; + int i; ieee->global_domain = false; @@ -59,9 +59,6 @@ void dot11d_channel_map(u8 channel_plan, struct rtllib_device *ieee) memset(GET_DOT11D_INFO(ieee)->channel_map, 0, sizeof(GET_DOT11D_INFO(ieee)->channel_map)); for (i = 0; i < channel_array[channel_plan].len; i++) { - if (channel_array[channel_plan].channel[i] < min_chan || - channel_array[channel_plan].channel[i] > max_chan) - break; GET_DOT11D_INFO(ieee)->channel_map[channel_array [channel_plan].channel[i]] = 1; }