Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp879910pxb; Wed, 27 Oct 2021 14:21:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiCA74P8/UIEdFd9k15cHIpbwTxZ1pyErgmKh9tJttHvMXntLRkTqtPVb2UFQmyiVgegkT X-Received: by 2002:a17:906:942:: with SMTP id j2mr22983ejd.303.1635369668613; Wed, 27 Oct 2021 14:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369668; cv=none; d=google.com; s=arc-20160816; b=XHm9+u59GhKYTdoZ56em4ESGv7kSClReBO0MFT34bAtBDKcbc50mXErxVj59WXKHNK fEdhvPPRr1TNy5R2S8xjlpq+PrVkGQouPi10IHN6b6jve3LLkcmQ90ZDCinnB+rv5Ua6 PzKJ+wP1AyDNscO7XecezWkOhV1UOlTICInr32EiD0zPK9SeuqY1Vz09LUnCXsTrKTcU gbjtul94n6Evx/6mbcxgoBwdZSqnofArhOe5kHi7fHBbK7kxo1h2UcgJHvGc0AUqLOtn F7cUps0QUAS+UsHLJ3rwPVayEmhRA0BR2BJbUbiHBtocgrWSnTERuh+lywzrcGEi/Rbi Zn9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kRf1Or618GeeWJVpuy0WSn6vEisI4WInWtok/e/T7zU=; b=S1a9DZznXnzXzMj3eLld8lPvrp6fAH2x0m6kEcgMvMGPujeIskNHCvf2lM4WB5fNPf eekMozCT5RiELHPJPnIFtzn5AT4bufFGp6+Bq78/WrwlCcKw0q0WIgBUuP1mBziJOHnI YgpSFKFRnxEVvAFfTdwHzJkOQcayVI91f9e+ES2HSOZaacGm/CtBxgBqpwR67m5LaBjl EtPBKzPE0Oco6lzsUN6fBaIGrbrTBdEr4uw0Hks8agndpxVDjWC22gxkiCx1lguwNGk9 fkw4JKCgDS7D1yT47wETp75UiLtmGyqUY3GOiLf3642hy5UBnzEgFkdpfLpJ5kiStpiK rItA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=hOOKi3W+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si1137780edc.609.2021.10.27.14.20.45; Wed, 27 Oct 2021 14:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=hOOKi3W+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241122AbhJ0JIo (ORCPT + 97 others); Wed, 27 Oct 2021 05:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241169AbhJ0JId (ORCPT ); Wed, 27 Oct 2021 05:08:33 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 794AAC0613B9; Wed, 27 Oct 2021 02:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=kRf1Or618GeeWJVpuy0WSn6vEisI4WInWtok/e/T7zU=; b=hOOKi3W+UKXuH3EKrOxoV/8Pzn vQNYH4wXJD00ONUkPZyjHYJ2pqAf4AUGCncM+d9RXWetYAMTU0Ii79n3VAwHs6TqsjSSu1nPXwXIY vgW1S0eUsqrzJu85uGWOhjcIcM+EpT5XiVvAyQKw8eSMn5JxvHS+sLC0UpvdDdMZepYm+oZdxYpC/ BLWMoEJ4XCUqc+vYBahHRPfbgZoQsSy2fmL1M0qkYGv9eTLbP/HwNQ4J3DefJ6In0angA47PAiXrt QELUu56VvNOM6ia/BqAuK4SotZ1BtaOeFJikpwPyIGuc2fIdF6/U4VhPL2bB9w5z6KN6OtyPNmmkN 1brVH6Gw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:55334) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mfesl-0006DM-CK; Wed, 27 Oct 2021 10:06:03 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mfesk-0007bZ-6c; Wed, 27 Oct 2021 10:06:02 +0100 Date: Wed, 27 Oct 2021 10:06:02 +0100 From: "Russell King (Oracle)" To: Jiapeng Chong Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, kuba@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: Fix unsigned comparison with less than zero Message-ID: References: <1635325191-101815-1-git-send-email-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1635325191-101815-1-git-send-email-jiapeng.chong@linux.alibaba.com> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 04:59:51PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/net/phy/at803x.c:493:5-10: WARNING: Unsigned expression > compared with zero: value < 0. > > Reported-by: Abaci Robot > Fixes: ea13c9ee855c ("drivers: net: phy: at803x: separate wol specific code to wol standard apis") > Signed-off-by: Jiapeng Chong Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!