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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);