From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH] ath10k: remove unnecessary comparison of unsigned integer with < 0 Date: Sat, 13 Oct 2018 17:24:21 +0000 (UTC) Message-ID: <20181013172421.98A3C60A98@smtp.codeaurora.org> References: <20181005185623.GA14405@embeddedor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" To: "Gustavo A. R. Silva" Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:46608 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726464AbeJNBCV (ORCPT ); Sat, 13 Oct 2018 21:02:21 -0400 In-Reply-To: <20181005185623.GA14405@embeddedor.com> Sender: netdev-owner@vger.kernel.org List-ID: "Gustavo A. R. Silva" wrote: > There is no need to compare *ps_state_enable* with < 0 because > such variable is of type u8 (8 bits, unsigned), making it > impossible to hold a negative value. > > Fix this by removing such comparison. > > Addresses-Coverity-ID: 1473921 ("Unsigned compared against 0") > Signed-off-by: Gustavo A. R. Silva > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 7bfd82bff60e ath10k: remove unnecessary comparison of unsigned integer with < 0 -- https://patchwork.kernel.org/patch/10628679/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches