Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1336081pxb; Thu, 16 Sep 2021 05:26:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2WMXyI/Zh6Qq7vJ4YgaYR0AQWF3F9XTD0dxbHBrh+tVYGisDRtLbqDDNnYBOmExvJx16h X-Received: by 2002:a92:280f:: with SMTP id l15mr3539615ilf.74.1631795183222; Thu, 16 Sep 2021 05:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631795183; cv=none; d=google.com; s=arc-20160816; b=VfjoXBWSXb0wF9toPBPy5irWzzUupYKxoihzCesXEr/l1928U4bhsxhIEndacQMaC3 RuIVoq8wOfHZkvmvr3LUXbiUN9PR0rJh+V4dYDl+SHqMf9N1JQbOlN1KjpMR8AJbVus+ 4S4FDnEyX6Lj4nqAc/CVQVBa3H5LiIyRBvenvsFNfvaGQdFMoLOSE2dVXDtg/ExgKuXm oeiZtItkCT+yTFLCJ/8Vfd3kjN+VC59t7xHiG3snLK9wuADueJiMnAj5+mgRyM1MNnnI XOVzlXDhr7BBPshbIeHKIPbFuXbyF7jVia96q0MYWIB1OFF48ISkgNGnjzsmvjlp1DnY RnXA== 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=Ner1PRW0e2syk+0RGJ4C+y45MXxewS5JdeB+08tFrKM=; b=hFUQzkgV8ImzXgAkk4oECDAKy69Ge8BkMaU+I08NfLS2AEb6wr+P5mdVYmnq5HRphF ZmZvl2OqPwUAW+uTy9JBC2J7e5PMgqpPX/E3UCec/fSh+SlF3gAUa0sU8MHep8kHMTWl wUlchoLCZGmLrlN4wexxEkeo1eYzosXl4i4F70pQ5g2XxySY/BBfCE/+XC7fzGdgxhLv PWj4kEbNLueJAxX/5HMSVLC12BTBWiER3ClTK1raBavMzfPH41/GOcTWALoy26mVdQxt tXoUNY5p1vlj+xSgFvf2dD9f+nu9Z1NK01C97DjlDGFppgHExsLoFDmfEE4Aq67zDuzB 91Dw== 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 c8si2481811iot.67.2021.09.16.05.26.10; Thu, 16 Sep 2021 05:26:23 -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 S239504AbhIPM0V (ORCPT + 99 others); Thu, 16 Sep 2021 08:26:21 -0400 Received: from smtpbg128.qq.com ([106.55.201.39]:39858 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235816AbhIPM0U (ORCPT ); Thu, 16 Sep 2021 08:26:20 -0400 X-QQ-mid: bizesmtp32t1631795092to1nkx5k Received: from localhost.localdomain (unknown [180.113.36.229]) by esmtp6.qq.com (ESMTP) with id ; Thu, 16 Sep 2021 20:24:44 +0800 (CST) X-QQ-SSF: 0100000000800030B000000A0000000 X-QQ-FEAT: gSGF8h2+s1IADEzB2CCwyyD6/XD9p1aGVRPyyJchy5+VAf++gx9oqFzn3LG1A CovWeQ/XIp3aG7oPPk4Ps1jbU+32qjHlyeXKxVUHtvnuvWkjvDfSbH90uWaDy8dQHLuMSpv vNzwDh/hHz7HlfZ55OI7tCUfq+KrL7lHOFqDTqcREgOaFdMeN6UFpkAnhmIzrNfWNJSJZjU EpTFKN0GgJEKuBpOKbDMZnv9wlzycrdiXoJ0ukyqKQgWD1GNV9Jj3MKTPbMxMeFX+lK2tZz yLl1klhtXNq/zJG9PnEprBe+xC4bg3x18gtBJL1kuxjAuVfs/TFi65ZxH7MXSgXVIsmjoZ1 RcaAag2WLBTbgy4uZh2mI+k2RzfAw== 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 v3] selftests: nci: replace unsigned int with int Date: Thu, 16 Sep 2021 20:24:42 +0800 Message-Id: <20210916122442.14732-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:qybgspam5 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 --- Changes since v1 * Change commit log Changes since v2 * Change commit log 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