Commit 98dc68f8 authored by Xiang wangx's avatar Xiang wangx Committed by David S. Miller

selftests: nci: replace unsigned int with int

Should not use comparison of unsigned expressions < 0.
Signed-off-by: default avatarXiang wangx <wangxiang@cdjrlc.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a57d8c21
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment