Skip to contentSkip to conversation

selftests: nci: fix grammatical errors

PATCH In review Xiang wangx 2 participants 2 messages Sep 16, 2021

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: nci: fix grammatical errors

Should not use unsigned expression compared with zero

---
 tools/testing/selftests/nci/nci_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/nci/nci_dev.c +1 -1
index e1bf55dabdf6..162c41e9bcae 100644
@@ -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
#1 lore raw

Actually I asked to fix grammatical errors in the subject.
For example => selftests: nci: replace unsigned int with int

And please change the log in more detail and put a period at the end
of the log.
For example => Should not use comparison of unsigned expressions < 0.

In addition to that, please send patch version 2 with changelog.
For example=> [PATCH v2 net] ~~~~.

Quoted 24 lines · Xiang wangx

Should not use unsigned expression compared with zero

---
 tools/testing/selftests/nci/nci_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/nci/nci_dev.c +1 -2
index e1bf55dabdf6..162c41e9bcae 100644
@@ -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);
--

2.20.1