selftests: nci: replace unsigned int with int
Subsystems (5)
PATCH v3 1/1 selftests: nci: replace unsigned int with int
Should not use comparison of unsigned expressions < 0.
Signed-off-by Xiang wangx <[email protected]>
---
Changes since v1
* Change commit log
Changes since v2
* Change commit log
tools/testing/selftests/nci/nci_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/nci/nci_dev.c +1 -1
@@ -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);
Signature · 1 line
2.20.1
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 9 lines · On Thu, 16 Sep 2021 20:24:42 +0800 you wrote:
Should not use comparison of unsigned expressions < 0.
Signed-off-by Xiang wangx <[email protected]>---
Changes since v1
* Change commit log[...]
Here is the summary with links:
- [v3] selftests: nci: replace unsigned int with int
https://git.kernel.org/netdev/net/c/98dc68f8b0c2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html