Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1309253pxb; Thu, 16 Sep 2021 04:54:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDZSuuzPXIhShmVwyrwM9F2s7w8Yl0gV/AJojEPkZoI9gh1Bh0vppN1hRAHqr7KS0JaHYU X-Received: by 2002:a5d:9da4:: with SMTP id ay36mr4095950iob.153.1631793287133; Thu, 16 Sep 2021 04:54:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631793287; cv=none; d=google.com; s=arc-20160816; b=n452+oEIWYsatRxLsB3819XD3+3qTW6+y5HAAPpjhH0Xb9CbazKKxEkAWZMEqvS6pN pxGdLr7CrHowRpP20kTioS39VucqusWtjWnFeZkfqjhWlp7HmInPcIOAiq6AMWH/RihW hj/GRaBErMCthssKW4aRIrUGgan0maw0/8I06bku09E0mvsfdjCtiTyGbLvQGSgB1d1s FZAusSZcZu8aaRMiBRojIn3RuuQClRNOfD2yO9vQM7EbeTlq5qAH6h6sJx5ft6Gf9scg Gm+SpektEz++4iy6DOmRqL/ntBrq+jaC006P818FPz3SA/U6JKbyJnxcFxgC2w/sBe+E 45lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=s0GFMw4SbAWXyeOGl0jiJ+mne00gvpSRJrGgMZpCaqE=; b=a00tl1LNseM1RtwCSm4NT5rzsfjXebM5CTfHtamCKm7HSjI7xMb4R1gfgEtfg3Rf8j Th+/ukg17i0rFodGUy934AsY2rM//rWQzJjQUZ/+eAyQffgegfIeKviz5HpVy/918u3T bY5rjvizrNZwowjfocrTTlQG3cC9Mn61ndctCMivjER13Qgm3zfIUJ3iWgv5gGf1EPh/ TNzI6ABhMG7DfXW/7Tbyb1iKxT0Sv+BkW3cpACMQaXzGKUuqSdh3LHUQWTY/VBz3EeyN b2XDk4hk8NtNfCjMmWL8KxfI/bVFEOXqPy2MGfCHZrAcyh3GYE0HX8piSIwIF1Jaw72S APqQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si2418095ilg.114.2021.09.16.04.54.35; Thu, 16 Sep 2021 04:54:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238178AbhIPLyK (ORCPT + 99 others); Thu, 16 Sep 2021 07:54:10 -0400 Received: from smtpbg587.qq.com ([113.96.223.105]:42011 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238405AbhIPLyK (ORCPT ); Thu, 16 Sep 2021 07:54:10 -0400 X-QQ-mid: bizesmtp51t1631793164tc1lhp8d Received: from localhost.localdomain (unknown [180.113.36.229]) by esmtp6.qq.com (ESMTP) with id ; Thu, 16 Sep 2021 19:52:33 +0800 (CST) X-QQ-SSF: 0100000000800030B000000A0000000 X-QQ-FEAT: dKvkn8qoLrG12dQ3LGYEKofR9s+KyHHoYz8f5GLuMcHfk3KEUBCV0jbaC/XKw xwospsK9oL0tI6pAzoH1ij4fUqYipsxY7FnbFwB3mje5qpk4mPaArs1Nx/TN0lSJsuo30Z3 bFLaNKYCSkA6NTwhfMBPOhGicBsJCzLz4Cld2MrHFqhhZhmIRreYDYOg6DFT4VP77JYgd2f VSfv7zA5DSCuNOdmqcA+VCP8Olj0GmhogrqKGN3Gc73pN+ykGptNk8ArWQ35APBRTvQnoMS ygwxQkTswBzFt18l9bBz9y4Zom8evE+pXphuimIAI07MNacOUmkQU6aS8MxheqhI4NaP+hj c8L/nFWBsSme8v6nfban+890oyq2A== X-QQ-GoodBg: 0 From: Xiang wangx To: bongsu.jeon@samsung.com Cc: shuah@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Xiang wangx Subject: [PATCH v2] selftests: nci: replace unsigned int with int Date: Thu, 16 Sep 2021 19:52:12 +0800 Message-Id: <20210916115212.24246-1-wangxiang@cdjrlc.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Should not use comparison of unsigned expressions < 0 Signed-off-by: Xiang wangx --- tools/testing/selftests/nci/nci_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nci/nci_dev.c b/tools/testing/selftests/nci/nci_dev.c index e1bf55dabdf6..162c41e9bcae 100644 --- a/tools/testing/selftests/nci/nci_dev.c +++ b/tools/testing/selftests/nci/nci_dev.c @@ -746,7 +746,7 @@ int read_write_nci_cmd(int nfc_sock, int virtual_fd, const __u8 *cmd, __u32 cmd_ const __u8 *rsp, __u32 rsp_len) { char buf[256]; - unsigned int len; + int len; send(nfc_sock, &cmd[3], cmd_len - 3, 0); len = read(virtual_fd, buf, cmd_len); -- 2.20.1