Skip to contentSkip to conversation

lib: crc-itu-t: Fix comment in typo

PATCH In review David Mosberger-Tang 2 participants 4 messages Feb 5, 2021 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: crc-itu-t: Fix comment in typo

---
 lib/crc-itu-t.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/crc-itu-t.c +1 -1
index 1974b355c148..56e6e0d63d1e 100644
@@ -7,7 +7,7 @@
 #include <linux/module.h>
 #include <linux/crc-itu-t.h>
 
-/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^15 + 1) */
+/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
 const u16 crc_itu_t_table[256] = {
 	0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
 	0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
Signature · 1 line
2.25.1
#1 lore raw
Quoted 10 lines · David Mosberger-Tang
---
 lib/crc-itu-t.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/crc-itu-t.c +0 -0
index 1974b355c148..56e6e0d63d1e 100644

lib/crc-itu-t.c line 10

Quoted 5 lines
lib/crc-itu-t.c +1 -1
@@ -7,7 +7,7 @@
 #include <linux/module.h>
 #include <linux/crc-itu-t.h>
 
-/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^15 + 1) */
+/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */

This comment should not be indicated as kernel-doc:
please use /* instead of /**.

lib/crc-itu-t.c line 13

Quoted 4 lines
lib/crc-itu-t.c +0 -0
 const u16 crc_itu_t_table[256] = {
 	0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
 	0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,

thanks.

Signature · 1 line
~Randy
#2 lore raw

PATCH 1/1 lib: crc-itu-t: Fix typo in comment

---
 lib/crc-itu-t.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/crc-itu-t.c +1 -1
index 1974b355c148..1d26a1647da5 100644
@@ -7,7 +7,7 @@
 #include <linux/module.h>
 #include <linux/crc-itu-t.h>
 
-/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^15 + 1) */
+/* CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
 const u16 crc_itu_t_table[256] = {
 	0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
 	0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#3 lore raw

Re: [PATCH] lib: crc-itu-t: Fix typo in comment

Quoted 1 line · David Mosberger-Tang

Thanks.

Quoted 18 lines
---
 lib/crc-itu-t.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/crc-itu-t.c +1 -1
index 1974b355c148..1d26a1647da5 100644
@@ -7,7 +7,7 @@
 #include <linux/module.h>
 #include <linux/crc-itu-t.h>
 
-/** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^15 + 1) */
+/* CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^5 + 1) */
 const u16 crc_itu_t_table[256] = {
 	0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
 	0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
Signature · 1 line
~Randy