Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BB38C6379F for ; Thu, 9 Feb 2023 18:11:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjBISLR (ORCPT ); Thu, 9 Feb 2023 13:11:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjBISLN (ORCPT ); Thu, 9 Feb 2023 13:11:13 -0500 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC47868AF3 for ; Thu, 9 Feb 2023 10:10:55 -0800 (PST) Received: (wp-smtpd smtp.wp.pl 24088 invoked from network); 9 Feb 2023 19:10:47 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=1024a; t=1675966247; bh=DGz+s+UKipsTRikuhhVo2ejVzn08Ml4tRecmL3OhQV4=; h=From:To:Cc:Subject; b=GlldKrmeW2Z79k4a8LS+GgbgcO4MNMAxLXLHUvErnZDUEjEpdRO/zbziys6iOGB4b DojR2wBQcG80q82XhhCmx+l/XNVeRSbfKXa6ex8Ji9j0TuJ9ykavBF85Jcp9Arx48v kUhqvCpvPSNqq1Js7D9qqUJtb1E063DfHAoUsfXo= Received: from 89-64-15-40.dynamic.chello.pl (HELO localhost) (stf_xl@wp.pl@[89.64.15.40]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 9 Feb 2023 19:10:47 +0100 Date: Thu, 9 Feb 2023 19:10:46 +0100 From: Stanislaw Gruszka To: Deepak R Varma Cc: Helmut Schaa , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Saurabh Singh Sengar , Praveen Kumar Subject: Re: [PATCH] wifi: rt2x00: remove impossible test condition Message-ID: <20230209181046.GA1446693@wp.pl> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-WP-MailID: d7335b10652026634d63a6a1420b71a7 X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [EWNV] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 09, 2023 at 02:35:50PM +0530, Deepak R Varma wrote: > Variable vga_gain is a u8 and will never attain a value less than 0. > Hence testing it for less 0 is impossible. > Issue identified using unsigned_lesser_than_zero.cocci Coccinelle > semantic patch. The issue was also reported by Kernel test Robot. > > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Deepak R Varma Acked-by: Stanislaw Gruszka