summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang wangx <wangxiang@cdjrlc.com>2021-09-16 15:24:42 +0300
committerDavid S. Miller <davem@davemloft.net>2021-09-16 15:55:51 +0300
commit98dc68f8b0c2248bdc3688c90d2499247b9432e4 (patch)
treecd39925cc6a153df985d8f6caadd14c11f474021
parenta57d8c217aadac75530b8e7ffb3a3e1b7bfd0330 (diff)
downloadlinux-98dc68f8b0c2248bdc3688c90d2499247b9432e4.tar.xz
selftests: nci: replace unsigned int with int
Should not use comparison of unsigned expressions < 0. Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--tools/testing/selftests/nci/nci_dev.c2
1 files changed, 1 insertions, 1 deletions
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);