Skip to content

Commit 98dc68f

Browse files
Xiang wangxdavem330
authored andcommitted
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>
1 parent a57d8c2 commit 98dc68f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/nci/nci_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ int read_write_nci_cmd(int nfc_sock, int virtual_fd, const __u8 *cmd, __u32 cmd_
746746
const __u8 *rsp, __u32 rsp_len)
747747
{
748748
char buf[256];
749-
unsigned int len;
749+
int len;
750750

751751
send(nfc_sock, &cmd[3], cmd_len - 3, 0);
752752
len = read(virtual_fd, buf, cmd_len);

0 commit comments

Comments
 (0)