Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4158847pxv; Mon, 26 Jul 2021 23:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/zCHYcS7NgD1FzcQnQe+1597Vf3LDKyfcq2W9jKZc/awl07vN+rvuxZJjrfM2iKw6Fj7Y X-Received: by 2002:aa7:cace:: with SMTP id l14mr22825825edt.14.1627367721836; Mon, 26 Jul 2021 23:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627367721; cv=none; d=google.com; s=arc-20160816; b=FVeUMh9UzSCYKfisHI4qJipxdBMkzOPBxC94cfwV/Va0XL29RMgY+dyxTaXjBGn5LQ 6JiqA13Ur/fj2gzgl925FmGVD8C5Dg59EF3KshMAc/+2LPCUtyn8Ul+e21CTmvtnYfsF G1RABGI2FueWYwPXHr8Ofzrjxpe6IbxJT1gaLjgTrU1kqktM/Q0AnYqkr//Rx7r1ppLA O9SrWTwh9RUKV4QZgf2Fa65yWYG7NW2vj3iCjeeVWPgVzwjdkrYRcoSUEFRxGG3mIphX 3iea6MMNv9T1Yr9/eN/NvqjBIKEEDkjNwe/reuAEgcsgzZ2OduTHVfThQJb/7h8h0p8R Wahg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=bvh0zvaZP6NDyHuSMjU3Ge7sFz/R6SOdS01NkH+cFQ4=; b=IvwPrnwTu6d1tAUQ2JHnkPUXy5LMi4u0PEqmymkOfl8h6v4UZMgJ+dgCBgx5bWYwBF 9wSc7uf/mtBpEAPtADePcjONHiAaCF3ukpN4QoOlCL0I9FISo3UfFTDDYjT/eVwkwuJh WSBAskO2JWZK14l48mSVvY+jJQdT3tCrKHrTQHJ7NqQ+GX6MIzhKnTbLSMvmmpNU6pno rtgZBCKQ6IZqZ0jYgTsiIovYrXjETgYQhrbok1wrLKiA33bR59slUR75VoqvvzCWmx/b +mgybJLE8Uus1CTciK+OGMoBcBd8XM9b+2lWxyqNLLcncatadKCgKyzvMGrZn3bs70eE pKMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MemaEKhU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 s18si2262612eji.591.2021.07.26.23.34.54; Mon, 26 Jul 2021 23:35:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=MemaEKhU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235477AbhG0Get (ORCPT + 99 others); Tue, 27 Jul 2021 02:34:49 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:15815 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233731AbhG0Ges (ORCPT ); Tue, 27 Jul 2021 02:34:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627367689; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=bvh0zvaZP6NDyHuSMjU3Ge7sFz/R6SOdS01NkH+cFQ4=; b=MemaEKhUNuJa1ztOfpSk7t0y7d6ZmBCsQiA9RbmFFDikGt8H3+wo8nSTKHe2/XKc6k0gybOS dtxiGspZyt+14at604YGFERnRiNwv2OeiggL3l+Kv7aes83O0DdBFdQz5w7SzfRiypJJJNQW akOQty+VWxa6LG0xNpI5V3UuouA= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 60ffa8fae31d882d18c8e0c4 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 27 Jul 2021 06:34:34 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B8CA4C43143; Tue, 27 Jul 2021 06:34:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 81261C433D3; Tue, 27 Jul 2021 06:34:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 81261C433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Len Baker Cc: Yan-Hsuan Chuang , "David S. Miller" , Jakub Kicinski , Greg KH , Brian Norris , Pkshih , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] rtw88: Remove unnecessary check code References: <20210718084202.5118-1-len.baker@gmx.com> Date: Tue, 27 Jul 2021 09:34:26 +0300 In-Reply-To: <20210718084202.5118-1-len.baker@gmx.com> (Len Baker's message of "Sun, 18 Jul 2021 10:42:02 +0200") Message-ID: <87eebkgt8t.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Len Baker writes: > The rtw_pci_init_rx_ring function is only ever called with a fixed > constant or RTK_MAX_RX_DESC_NUM for the "len" argument. Since this > constant is defined as 512, the "if (len > TRX_BD_IDX_MASK)" check > can never happen (TRX_BD_IDX_MASK is defined as GENMASK(11, 0) or in > other words as 4095). > > So, remove this check. > > Signed-off-by: Len Baker Are everyone ok with this version? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches