linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net-next] sctp: Fix typos in comments across various files
@ 2024-09-24  6:22 Yu Jiaoliang
  2024-09-24  8:11 ` Maxime Chevallier
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Jiaoliang @ 2024-09-24  6:22 UTC (permalink / raw)
  To: Marcelo Ricardo Leitner, Xin Long, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, linux-sctp, netdev, linux-kernel
  Cc: opensource.kernel

This commit corrects spelling errors in comments
within the stcp subsystem to enhance clarity and
maintainability of the code.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
---
 net/sctp/auth.c   | 4 ++--
 net/sctp/chunk.c  | 2 +-
 net/sctp/socket.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/sctp/auth.c b/net/sctp/auth.c
index c58fffc86a0c..4bec21f8cb36 100644
--- a/net/sctp/auth.c
+++ b/net/sctp/auth.c
@@ -460,7 +460,7 @@ int sctp_auth_init_hmacs(struct sctp_endpoint *ep, gfp_t gfp)
 	if (ep->auth_hmacs)
 		return 0;
 
-	/* Allocated the array of pointers to transorms */
+	/* Allocated the array of pointers to transforms */
 	ep->auth_hmacs = kcalloc(SCTP_AUTH_NUM_HMACS,
 				 sizeof(struct crypto_shash *),
 				 gfp);
@@ -774,7 +774,7 @@ int sctp_auth_ep_add_chunkid(struct sctp_endpoint *ep, __u8 chunk_id)
 	return 0;
 }
 
-/* Add hmac identifires to the endpoint list of supported hmac ids */
+/* Add hmac identifiers to the endpoint list of supported hmac ids */
 int sctp_auth_ep_set_hmacs(struct sctp_endpoint *ep,
 			   struct sctp_hmacalgo *hmacs)
 {
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c
index fd4f8243cc35..19f4562a3b7f 100644
--- a/net/sctp/chunk.c
+++ b/net/sctp/chunk.c
@@ -68,7 +68,7 @@ void sctp_datamsg_free(struct sctp_datamsg *msg)
 	sctp_datamsg_put(msg);
 }
 
-/* Final destructruction of datamsg memory. */
+/* Final destruction of datamsg memory. */
 static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
 {
 	struct sctp_association *asoc = NULL;
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 32f76f1298da..9fe18414a355 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -6631,7 +6631,7 @@ static int sctp_getsockopt_associnfo(struct sock *sk, int len,
 	    sctp_style(sk, UDP))
 		return -EINVAL;
 
-	/* Values correspoinding to the specific association */
+	/* Values corresponding to the specific association */
 	if (asoc) {
 		assocparams.sasoc_asocmaxrxt = asoc->max_retrans;
 		assocparams.sasoc_peer_rwnd = asoc->peer.rwnd;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-24  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24  6:22 [PATCH v1 net-next] sctp: Fix typos in comments across various files Yu Jiaoliang
2024-09-24  8:11 ` Maxime Chevallier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).