projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a57d8c2
)
selftests: nci: replace unsigned int with int
author
Xiang wangx
<wangxiang@cdjrlc.com>
Thu, 16 Sep 2021 12:24:42 +0000
(20:24 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 16 Sep 2021 12:55:51 +0000
(13:55 +0100)
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>
tools/testing/selftests/nci/nci_dev.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/nci/nci_dev.c
b/tools/testing/selftests/nci/nci_dev.c
index e1bf55dabdf6569b9da744beeaedf7a57f617e17..162c41e9bcae876be1a503dba0e3d27d3d4b2beb 100644
(file)
--- 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);