Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp879596pxb; Wed, 27 Oct 2021 14:20:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHzhx9QQK8U9suGdxpXkoeyqRlCbwOSqbBIN2s4/WXJ++0zWIdkMGi7ZFYBpSySmxx2jON X-Received: by 2002:a17:906:8a79:: with SMTP id hy25mr69729ejc.282.1635369644030; Wed, 27 Oct 2021 14:20:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369644; cv=none; d=google.com; s=arc-20160816; b=ger0Mm/XKqgLGStYDkm0QTf3ZJpZn4jfeH+OCeerasoJ05ojKCc71w3NaIbIU+SJ4d WzKR/ofw/1JWggn1uPVz+pl9PufUDMoGMmjYq9zx8cDAFCZtwKBBHQyB1QuSs5BMQ4DN jvJwg6lSOfuRmBJ+0S9Bc41S670PYqrrdkQMHR24jsOUMixt8XfXXqELHMsxD8H0rfPk Dy+Sqq9bTHBwxxWTqlbmrmTrg5Z02rBn5RE9YAOQ2H4vba+HSWBulCIA82YHEaPwH1wQ fIhGRCLx2bjA62dg9o3MBs8Gy1GBIUpFnTA2l6RjqslQVbRNkR4na4XkE6Ds7D8O9sRt 6+Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=XYAbUFo6qNSWJ1McmUW26fVFkAzEi2m0MT3PaOge9Z4=; b=Ecp+SENUfaj2kWfUYpqD07Wr8FEAYkDuLrMiL12UdQmAbkfyyiTY72t7zuRNCaeVOm Tfd47lYidQFwOx/YLYkdQMpd2O04wX0+zRU7mGer3YGEdzG5RWyzVdykTcx9WAXiE1Ug MBn3gNvHqRgH0JK3lDIt3KBsoLydvUnuORiaxpRAPBCkZSeqJ7TcEXw9RuMKZFALNPaG V7X9ECRsZ1PngzcNJEEE7SjLv+9i8LfCxF8E3jo1GJRvmm/krdEMD9/L+VrYIkSGtb7Z z9aGuo2bPFszGAlS+AfzCXv2bG2UtxB80aVRrWpX3N8q3xS3ZdOHA1mfsWFpIThHYk98 9AKg== ARC-Authentication-Results: i=1; mx.google.com; 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si1175272edk.341.2021.10.27.14.20.20; Wed, 27 Oct 2021 14:20:44 -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; 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239868AbhJ0JC0 (ORCPT + 97 others); Wed, 27 Oct 2021 05:02:26 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:60524 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236174AbhJ0JC0 (ORCPT ); Wed, 27 Oct 2021 05:02:26 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R991e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0Uts4mKA_1635325196; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Uts4mKA_1635325196) by smtp.aliyun-inc.com(127.0.0.1); Wed, 27 Oct 2021 16:59:59 +0800 From: Jiapeng Chong To: andrew@lunn.ch Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] net: phy: Fix unsigned comparison with less than zero Date: Wed, 27 Oct 2021 16:59:51 +0800 Message-Id: <1635325191-101815-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/phy/at803x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c index f1cbe1f..dae95d9 100644 --- a/drivers/net/phy/at803x.c +++ b/drivers/net/phy/at803x.c @@ -484,7 +484,7 @@ static int at803x_set_wol(struct phy_device *phydev, static void at803x_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol) { - u32 value; + int value; wol->supported = WAKE_MAGIC; wol->wolopts = 0; -- 1.8.3.1