linux-sctp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] net: sctp: delete duplicated words + other fixes
@ 2020-08-22 23:15 Randy Dunlap
  2020-08-22 23:15 ` [PATCH 1/7] net: sctp: associola.c: delete duplicated words Randy Dunlap
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:15 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop or fix repeated words in net/sctp/.

Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>


 net/sctp/associola.c     |    4 ++--
 net/sctp/auth.c          |    4 ++--
 net/sctp/bind_addr.c     |    2 +-
 net/sctp/chunk.c         |    2 +-
 net/sctp/protocol.c      |    8 ++++----
 net/sctp/sm_make_chunk.c |    6 +++---
 net/sctp/ulpqueue.c      |    2 +-
 7 files changed, 14 insertions(+), 14 deletions(-)

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

* [PATCH 1/7] net: sctp: associola.c: delete duplicated words
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
@ 2020-08-22 23:15 ` Randy Dunlap
  2020-08-22 23:15 ` [PATCH 2/7] net: sctp: auth.c: " Randy Dunlap
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:15 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated word "the" in two places.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/associola.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20200731.orig/net/sctp/associola.c
+++ linux-next-20200731/net/sctp/associola.c
@@ -1351,7 +1351,7 @@ static void sctp_select_active_and_retra
 	}
 
 	/* We did not find anything useful for a possible retransmission
-	 * path; either primary path that we found is the the same as
+	 * path; either primary path that we found is the same as
 	 * the current one, or we didn't generally find an active one.
 	 */
 	if (trans_sec = NULL)
@@ -1537,7 +1537,7 @@ void sctp_assoc_rwnd_decrease(struct sct
 
 	/* If we've reached or overflowed our receive buffer, announce
 	 * a 0 rwnd if rwnd would still be positive.  Store the
-	 * the potential pressure overflow so that the window can be restored
+	 * potential pressure overflow so that the window can be restored
 	 * back to original value.
 	 */
 	if (rx_count >= asoc->base.sk->sk_rcvbuf)

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

* [PATCH 2/7] net: sctp: auth.c: delete duplicated words
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
  2020-08-22 23:15 ` [PATCH 1/7] net: sctp: associola.c: delete duplicated words Randy Dunlap
@ 2020-08-22 23:15 ` Randy Dunlap
  2020-08-22 23:15 ` [PATCH 3/7] net: sctp: bind_addr.c: delete duplicated word Randy Dunlap
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:15 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated word "the" and "now".

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/auth.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20200731.orig/net/sctp/auth.c
+++ linux-next-20200731/net/sctp/auth.c
@@ -445,7 +445,7 @@ struct sctp_shared_key *sctp_auth_get_sh
 }
 
 /*
- * Initialize all the possible digest transforms that we can use.  Right now
+ * Initialize all the possible digest transforms that we can use.  Right
  * now, the supported digests are SHA1 and SHA256.  We do this here once
  * because of the restrictiong that transforms may only be allocated in
  * user context.  This forces us to pre-allocated all possible transforms
@@ -810,7 +810,7 @@ int sctp_auth_ep_set_hmacs(struct sctp_e
 }
 
 /* Set a new shared key on either endpoint or association.  If the
- * the key with a same ID already exists, replace the key (remove the
+ * key with a same ID already exists, replace the key (remove the
  * old key and add a new one).
  */
 int sctp_auth_set_key(struct sctp_endpoint *ep,

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

* [PATCH 3/7] net: sctp: bind_addr.c: delete duplicated word
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
  2020-08-22 23:15 ` [PATCH 1/7] net: sctp: associola.c: delete duplicated words Randy Dunlap
  2020-08-22 23:15 ` [PATCH 2/7] net: sctp: auth.c: " Randy Dunlap
@ 2020-08-22 23:15 ` Randy Dunlap
  2020-08-22 23:15 ` [PATCH 4/7] net: sctp: chunk.c: " Randy Dunlap
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:15 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated word "of".

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/bind_addr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200731.orig/net/sctp/bind_addr.c
+++ linux-next-20200731/net/sctp/bind_addr.c
@@ -505,7 +505,7 @@ int sctp_in_scope(struct net *net, const
 		return 0;
 	/*
 	 * For INIT and INIT-ACK address list, let L be the level of
-	 * of requested destination address, sender and receiver
+	 * requested destination address, sender and receiver
 	 * SHOULD include all of its addresses with level greater
 	 * than or equal to L.
 	 *

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

* [PATCH 4/7] net: sctp: chunk.c: delete duplicated word
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
                   ` (2 preceding siblings ...)
  2020-08-22 23:15 ` [PATCH 3/7] net: sctp: bind_addr.c: delete duplicated word Randy Dunlap
@ 2020-08-22 23:15 ` Randy Dunlap
  2020-08-22 23:15 ` [PATCH 5/7] net: sctp: protocol.c: delete duplicated words + punctuation Randy Dunlap
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:15 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated word "the".

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/chunk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200731.orig/net/sctp/chunk.c
+++ linux-next-20200731/net/sctp/chunk.c
@@ -179,7 +179,7 @@ struct sctp_datamsg *sctp_datamsg_from_u
 				    __func__, asoc, max_data);
 	}
 
-	/* If the the peer requested that we authenticate DATA chunks
+	/* If the peer requested that we authenticate DATA chunks
 	 * we need to account for bundling of the AUTH chunks along with
 	 * DATA.
 	 */

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

* [PATCH 5/7] net: sctp: protocol.c: delete duplicated words + punctuation
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
                   ` (3 preceding siblings ...)
  2020-08-22 23:15 ` [PATCH 4/7] net: sctp: chunk.c: " Randy Dunlap
@ 2020-08-22 23:15 ` Randy Dunlap
  2020-08-22 23:16 ` [PATCH 6/7] net: sctp: sm_make_chunk.c: delete duplicated words + fix typo Randy Dunlap
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:15 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated words "of" and "that".
Add some punctuation for readability.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/protocol.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

--- linux-next-20200731.orig/net/sctp/protocol.c
+++ linux-next-20200731/net/sctp/protocol.c
@@ -372,7 +372,7 @@ static int sctp_v4_available(union sctp_
  * Level 3 - private addresses.
  * Level 4 - global addresses
  * For INIT and INIT-ACK address list, let L be the level of
- * of requested destination address, sender and receiver
+ * requested destination address, sender and receiver
  * SHOULD include all of its addresses with level greater
  * than or equal to L.
  *
@@ -1483,10 +1483,10 @@ static __init int sctp_init(void)
 	num_entries = (1UL << order) * PAGE_SIZE /
 		      sizeof(struct sctp_bind_hashbucket);
 
-	/* And finish by rounding it down to the nearest power of two
-	 * this wastes some memory of course, but its needed because
+	/* And finish by rounding it down to the nearest power of two.
+	 * This wastes some memory of course, but it's needed because
 	 * the hash function operates based on the assumption that
-	 * that the number of entries is a power of two
+	 * the number of entries is a power of two.
 	 */
 	sctp_port_hashsize = rounddown_pow_of_two(num_entries);
 

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

* [PATCH 6/7] net: sctp: sm_make_chunk.c: delete duplicated words + fix typo
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
                   ` (4 preceding siblings ...)
  2020-08-22 23:15 ` [PATCH 5/7] net: sctp: protocol.c: delete duplicated words + punctuation Randy Dunlap
@ 2020-08-22 23:16 ` Randy Dunlap
  2020-08-22 23:16 ` [PATCH 7/7] net: sctp: ulpqueue.c: delete duplicated word Randy Dunlap
  2020-08-24 23:22 ` [PATCH 0/7] net: sctp: delete duplicated words + other fixes David Miller
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:16 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated words "for", "that", and "a".
Change "his" to "this".

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/sm_make_chunk.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-next-20200731.orig/net/sctp/sm_make_chunk.c
+++ linux-next-20200731/net/sctp/sm_make_chunk.c
@@ -1235,7 +1235,7 @@ nodata:
 
 /* Create an Operation Error chunk of a fixed size, specifically,
  * min(asoc->pathmtu, SCTP_DEFAULT_MAXSEGMENT) - overheads.
- * This is a helper function to allocate an error chunk for for those
+ * This is a helper function to allocate an error chunk for those
  * invalid parameter codes in which we may not want to report all the
  * errors, if the incoming chunk is large. If it can't fit in a single
  * packet, we ignore it.
@@ -1780,7 +1780,7 @@ no_hmac:
 	 * for init collision case of lost COOKIE ACK.
 	 * If skb has been timestamped, then use the stamp, otherwise
 	 * use current time.  This introduces a small possibility that
-	 * that a cookie may be considered expired, but his would only slow
+	 * a cookie may be considered expired, but this would only slow
 	 * down the new association establishment instead of every packet.
 	 */
 	if (sock_flag(ep->base.sk, SOCK_TIMESTAMP))
@@ -2319,7 +2319,7 @@ int sctp_process_init(struct sctp_associ
 
 	/* This implementation defaults to making the first transport
 	 * added as the primary transport.  The source address seems to
-	 * be a a better choice than any of the embedded addresses.
+	 * be a better choice than any of the embedded addresses.
 	 */
 	if (!sctp_assoc_add_peer(asoc, peer_addr, gfp, SCTP_ACTIVE))
 		goto nomem;

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

* [PATCH 7/7] net: sctp: ulpqueue.c: delete duplicated word
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
                   ` (5 preceding siblings ...)
  2020-08-22 23:16 ` [PATCH 6/7] net: sctp: sm_make_chunk.c: delete duplicated words + fix typo Randy Dunlap
@ 2020-08-22 23:16 ` Randy Dunlap
  2020-08-24 23:22 ` [PATCH 0/7] net: sctp: delete duplicated words + other fixes David Miller
  7 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-08-22 23:16 UTC (permalink / raw)
  To: netdev
  Cc: Randy Dunlap, Vlad Yasevich, Neil Horman,
	Marcelo Ricardo Leitner, linux-sctp, David S. Miller,
	Jakub Kicinski

Drop the repeated word "an".

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vlad Yasevich <vyasevich@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Cc: linux-sctp@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
---
 net/sctp/ulpqueue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200731.orig/net/sctp/ulpqueue.c
+++ linux-next-20200731/net/sctp/ulpqueue.c
@@ -740,7 +740,7 @@ static void sctp_ulpq_reasm_drain(struct
 
 
 /* Helper function to gather skbs that have possibly become
- * ordered by an an incoming chunk.
+ * ordered by an incoming chunk.
  */
 static void sctp_ulpq_retrieve_ordered(struct sctp_ulpq *ulpq,
 					      struct sctp_ulpevent *event)

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

* Re: [PATCH 0/7] net: sctp: delete duplicated words + other fixes
  2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
                   ` (6 preceding siblings ...)
  2020-08-22 23:16 ` [PATCH 7/7] net: sctp: ulpqueue.c: delete duplicated word Randy Dunlap
@ 2020-08-24 23:22 ` David Miller
  7 siblings, 0 replies; 9+ messages in thread
From: David Miller @ 2020-08-24 23:22 UTC (permalink / raw)
  To: rdunlap; +Cc: netdev, vyasevich, nhorman, marcelo.leitner, linux-sctp, kuba

From: Randy Dunlap <rdunlap@infradead.org>
Date: Sat, 22 Aug 2020 16:15:54 -0700

> Drop or fix repeated words in net/sctp/.

Series applied to net-next, thanks Randy.

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

end of thread, other threads:[~2020-08-24 23:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-22 23:15 [PATCH 0/7] net: sctp: delete duplicated words + other fixes Randy Dunlap
2020-08-22 23:15 ` [PATCH 1/7] net: sctp: associola.c: delete duplicated words Randy Dunlap
2020-08-22 23:15 ` [PATCH 2/7] net: sctp: auth.c: " Randy Dunlap
2020-08-22 23:15 ` [PATCH 3/7] net: sctp: bind_addr.c: delete duplicated word Randy Dunlap
2020-08-22 23:15 ` [PATCH 4/7] net: sctp: chunk.c: " Randy Dunlap
2020-08-22 23:15 ` [PATCH 5/7] net: sctp: protocol.c: delete duplicated words + punctuation Randy Dunlap
2020-08-22 23:16 ` [PATCH 6/7] net: sctp: sm_make_chunk.c: delete duplicated words + fix typo Randy Dunlap
2020-08-22 23:16 ` [PATCH 7/7] net: sctp: ulpqueue.c: delete duplicated word Randy Dunlap
2020-08-24 23:22 ` [PATCH 0/7] net: sctp: delete duplicated words + other fixes David Miller

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).