Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1371172rdb; Wed, 20 Sep 2023 07:27:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIAq4WGw0NKizaDxYEOZCpY/0mTefjX9tCtRychUWSzQfbkgqAJOfkMFExfnAECgAGQo1h X-Received: by 2002:a05:6870:658b:b0:1d5:cba4:a6d6 with SMTP id fp11-20020a056870658b00b001d5cba4a6d6mr2801842oab.4.1695220051569; Wed, 20 Sep 2023 07:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695220051; cv=none; d=google.com; s=arc-20160816; b=oFGb05R+thgPgUu6IKG7Gj148ctYwcBb+IBmMGrqXMdeU/13gb/ml/xnsaJ77TdAcq 3ZhBaNu5IOCajRqoi/+TFvbY4ctG+ezQZcKkLbLQfpMWckoAyau7hBLfP3jAmKYYVxV+ KNYDOVU5hYPtx+MNi62ZWtou3hFG0m2vLu9Vve+3IaQKjuWoRUHW1v9VHSKKd/BckDxS B8JzVeQKayF67nkks3jOdHZQ6jivAL3XQNq31Img7MgvLsVmDszUBLdcVncI90NHDMZ/ /IVL14o+sorl/DdfaJ3rM7kLDW7pxrn8zI+bYKZshooRlwvqrwpbUeu09VOBi7y4fkg6 LWAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=cW8LQWN9fsB4a0Lw0BX8wHiO9qifA9+wK+s0FM8usYE=; fh=Cwb7pepXHXqb4pJFJf2VEdZMA3xTqe44TV+gtGjnR1k=; b=fP9wgQkwe6QaBVrTAyojM8WYncsOJc72qYdf+8LsMNLOTlrwmyoXPwSrtnTSF0YVn+ 71Xn5icK0c5925diYgDJOsbKMF2F5GFVy6UefrKiW3rH0LXp/1NYKVgt4uA37AdamXYQ v9keHATsfroBki5sdXnt6+yGfxMyeNRFdhidPcIZKjTgv4xrXy8v7NIyjf9aA+s5l8iK kvwdWej6FbEL0PP8SPmT+Bz3xlp8XgQbKByWddESjI6Zia3wdV9UzzgTdszkVpymDo1U llBJAQYD2omdfCMwPrpQ4/g8k3nxtR7Fj1VWJD7G4kRsgw7v/uovG2LSkKCZKr/g5kQl QDBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qS3Nd8sj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e66-20020a636945000000b005774c90073asi11505407pgc.320.2023.09.20.07.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 07:27:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qS3Nd8sj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 03CDC81F4719; Wed, 20 Sep 2023 06:17:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234521AbjITNRD (ORCPT + 56 others); Wed, 20 Sep 2023 09:17:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234793AbjITNRB (ORCPT ); Wed, 20 Sep 2023 09:17:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A68BE4 for ; Wed, 20 Sep 2023 06:16:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A575CC433C8; Wed, 20 Sep 2023 13:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695215785; bh=X6WSxYFOQ44zCks4qQvECXYOseDhapHvD4J4nF2i2IQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=qS3Nd8sjZ8g/1Zn1JAyKnaLpZp1zIhVoNqczKeL0lV7BthWrT3dfa75uLrtvp/H2u 08wlOIfhtU8pCQjaf4Xv8fZC5qk1i0YtjefkkQJwrqNQ8DVVGS65+DHd4ba/Nl4gp1 XWmDXlSRFnVz8LcxHKOTLEqLbC/JltRmOV3N2/Hj/uVM24W1dHCvefZRDwzXzsVv/p 762AvlNy3t2qdSLwvNNvPAPbpIVtXiea3HbVA30jrTZgjyalR8o31aHkNfjfcAoabs O2KLYulxMdk1p/a9MY4ku+fx4EP3Ujo6t99FRUsJoNyYU75d0wiOgzVH+4SBT/AWUt +LGPHDaS0zkjQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/2] wifi: ath9k: simplify ar9003_hw_process_ini() From: Kalle Valo In-Reply-To: <20230823182401.196270-1-dmantipov@yandex.ru> References: <20230823182401.196270-1-dmantipov@yandex.ru> To: Dmitry Antipov Cc: Jeff Johnson , =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org, Dmitry Antipov User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169521578189.1118199.3983270452388999341.kvalo@kernel.org> Date: Wed, 20 Sep 2023 13:16:23 +0000 (UTC) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:17:02 -0700 (PDT) Dmitry Antipov wrote: > Since commit 8896934c1684 ("ath9k_hw: remove direct accesses to channel > mode flags") changes 'ar9550_hw_get_modes_txgain_index()' so it never > returns -EINVAL, and 'ar9561_hw_get_modes_txgain_index()' never returns > negative value too, an extra check in 'ar9003_hw_process_ini()' may be > dropped. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Dmitry Antipov > Reviewed-by: Jeff Johnson > Acked-by: Toke Høiland-Jørgensen > Signed-off-by: Kalle Valo 2 patches applied to ath-next branch of ath.git, thanks. e6a1107bf5eb wifi: ath9k: simplify ar9003_hw_process_ini() 352281e4a0a0 wifi: ath9k: use u32 for txgain indexes -- https://patchwork.kernel.org/project/linux-wireless/patch/20230823182401.196270-1-dmantipov@yandex.ru/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches