From: Xiang wangx Date: Thu, 16 Sep 2021 12:24:42 +0000 (+0800) Subject: selftests: nci: replace unsigned int with int X-Git-Tag: microblaze-v5.18~946^2~4 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=98dc68f8b0c2248bdc3688c90d2499247b9432e4;p=linux-2.6-microblaze.git selftests: nci: replace unsigned int with int Should not use comparison of unsigned expressions < 0. Signed-off-by: Xiang wangx Signed-off-by: David S. Miller --- 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);