Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Xiang wangx and committed by
David S. Miller
98dc68f8 a57d8c21

+1 -1
+1 -1
tools/testing/selftests/nci/nci_dev.c
··· 746 746 const __u8 *rsp, __u32 rsp_len) 747 747 { 748 748 char buf[256]; 749 - unsigned int len; 749 + int len; 750 750 751 751 send(nfc_sock, &cmd[3], cmd_len - 3, 0); 752 752 len = read(virtual_fd, buf, cmd_len);