linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: s390: drop unexpected word "the" in the comments
@ 2022-06-21 11:37 Jiang Jian
  2022-06-21 11:58 ` Alexandra Winter
  0 siblings, 1 reply; 5+ messages in thread
From: Jiang Jian @ 2022-06-21 11:37 UTC (permalink / raw)
  To: wintera
  Cc: wenjia, hca, gor, agordeev, borntraeger, svens, linux-s390,
	netdev, linux-kernel, Jiang Jian

there is an unexpected word "the" in the comments that need to be dropped

file: ./drivers/s390/net/qeth_core_main.c
line: 3568

* have to request a PCI to be sure the the PCI
changed to
* have to request a PCI to be sure the PCI

Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com>
---
 drivers/s390/net/qeth_core_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 9e54fe76a9b2..35d4b398c197 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -3565,7 +3565,7 @@ static void qeth_flush_buffers(struct qeth_qdio_out_q *queue, int index,
 			if (!atomic_read(&queue->set_pci_flags_count)) {
 				/*
 				 * there's no outstanding PCI any more, so we
-				 * have to request a PCI to be sure the the PCI
+				 * have to request a PCI to be sure the PCI
 				 * will wake at some time in the future then we
 				 * can flush packed buffers that might still be
 				 * hanging around, which can happen if no
-- 
2.17.1


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

* Re: [PATCH] net: s390: drop unexpected word "the" in the comments
  2022-06-21 11:37 [PATCH] net: s390: drop unexpected word "the" in the comments Jiang Jian
@ 2022-06-21 11:58 ` Alexandra Winter
  2022-06-21 15:01   ` Joe Perches
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandra Winter @ 2022-06-21 11:58 UTC (permalink / raw)
  To: Jiang Jian
  Cc: wenjia, hca, gor, agordeev, borntraeger, svens, linux-s390,
	netdev, linux-kernel



On 21.06.22 13:37, Jiang Jian wrote:
> there is an unexpected word "the" in the comments that need to be dropped
> 
> file: ./drivers/s390/net/qeth_core_main.c
> line: 3568
> 
> * have to request a PCI to be sure the the PCI
> changed to
> * have to request a PCI to be sure the PCI
> 
> Signed-off-by: Jiang Jian <jiangjian@cdjrlc.com>
> ---
>  drivers/s390/net/qeth_core_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
> index 9e54fe76a9b2..35d4b398c197 100644
> --- a/drivers/s390/net/qeth_core_main.c
> +++ b/drivers/s390/net/qeth_core_main.c
> @@ -3565,7 +3565,7 @@ static void qeth_flush_buffers(struct qeth_qdio_out_q *queue, int index,
>  			if (!atomic_read(&queue->set_pci_flags_count)) {
>  				/*
>  				 * there's no outstanding PCI any more, so we
> -				 * have to request a PCI to be sure the the PCI
> +				 * have to request a PCI to be sure the PCI
>  				 * will wake at some time in the future then we
>  				 * can flush packed buffers that might still be
>  				 * hanging around, which can happen if no

Acked-by: Alexandra Winter <wintera@linux.ibm.com>

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

* Re: [PATCH] net: s390: drop unexpected word "the" in the comments
  2022-06-21 11:58 ` Alexandra Winter
@ 2022-06-21 15:01   ` Joe Perches
       [not found]     ` <tencent_05711A707693017879EC87F7@qq.com>
  2022-06-21 15:44     ` Alexandra Winter
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Perches @ 2022-06-21 15:01 UTC (permalink / raw)
  To: Alexandra Winter, Jiang Jian
  Cc: wenjia, hca, gor, agordeev, borntraeger, svens, linux-s390,
	netdev, linux-kernel

On Tue, 2022-06-21 at 13:58 +0200, Alexandra Winter wrote:
> On 21.06.22 13:37, Jiang Jian wrote:
> > there is an unexpected word "the" in the comments that need to be dropped
[]
> > * have to request a PCI to be sure the the PCI
> > * have to request a PCI to be sure the PCI
[]
> > diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
[]
> > @@ -3565,7 +3565,7 @@ static void qeth_flush_buffers(struct qeth_qdio_out_q *queue, int index,
> >  			if (!atomic_read(&queue->set_pci_flags_count)) {
> >  				/*
> >  				 * there's no outstanding PCI any more, so we
> > -				 * have to request a PCI to be sure the the PCI

Might have intended "that the" and not "the the"

> > +				 * have to request a PCI to be sure the PCI
> >  				 * will wake at some time in the future then we
> >  				 * can flush packed buffers that might still be
> >  				 * hanging around, which can happen if no

And this is a relatively long sentence.

Perhaps something like:

			if (!atomic_read(&queue->set_pci_flags_count)) {
				/*
				 * there's no outstanding PCI any more so:
				 * o request a PCI to be sure that the PCI
				 *   will wake at some time in the future
				 * o flush packed buffers that might still be
				 *   hanging around (which can happen if no
				 *   further send was requested by the stack)
				 */


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

* Re: Re: [PATCH] net: s390: drop unexpected word "the" in the comments
       [not found]     ` <tencent_05711A707693017879EC87F7@qq.com>
@ 2022-06-21 15:30       ` Joe Perches
  0 siblings, 0 replies; 5+ messages in thread
From: Joe Perches @ 2022-06-21 15:30 UTC (permalink / raw)
  To: 蒋健, Alexandra Winter
  Cc: wenjia, hca, gor, agordeev, borntraeger, svens, linux-s390,
	netdev, linux-kernel

On Tue, 2022-06-21 at 23:21 +0800, 蒋健 wrote:
> So,i need to resubmit a new patch ?&nbsp;

Not necesarily no.  Up to you.

And this is a quite old driver that likely doesn't need much
change so if there is a patch at all, maybe simpler is better.

(though all the uses like ?&nbsp; in your reply could be a
 reason to either update or perhaps reconfigure your
 X-Mailer: QQMail 2.x email client)

cheers, Joe

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

* Re: [PATCH] net: s390: drop unexpected word "the" in the comments
  2022-06-21 15:01   ` Joe Perches
       [not found]     ` <tencent_05711A707693017879EC87F7@qq.com>
@ 2022-06-21 15:44     ` Alexandra Winter
  1 sibling, 0 replies; 5+ messages in thread
From: Alexandra Winter @ 2022-06-21 15:44 UTC (permalink / raw)
  To: Joe Perches, Jiang Jian
  Cc: wenjia, hca, gor, agordeev, borntraeger, svens, linux-s390,
	netdev, linux-kernel



On 21.06.22 17:01, Joe Perches wrote:
> On Tue, 2022-06-21 at 13:58 +0200, Alexandra Winter wrote:
>> On 21.06.22 13:37, Jiang Jian wrote:
>>> there is an unexpected word "the" in the comments that need to be dropped
> []
>>> * have to request a PCI to be sure the the PCI
>>> * have to request a PCI to be sure the PCI
> []
>>> diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
> []
>>> @@ -3565,7 +3565,7 @@ static void qeth_flush_buffers(struct qeth_qdio_out_q *queue, int index,
>>>  			if (!atomic_read(&queue->set_pci_flags_count)) {
>>>  				/*
>>>  				 * there's no outstanding PCI any more, so we
>>> -				 * have to request a PCI to be sure the the PCI
> 
> Might have intended "that the" and not "the the"
> 
>>> +				 * have to request a PCI to be sure the PCI
>>>  				 * will wake at some time in the future then we
>>>  				 * can flush packed buffers that might still be
>>>  				 * hanging around, which can happen if no
> 
> And this is a relatively long sentence.
> 
> Perhaps something like:
> 
> 			if (!atomic_read(&queue->set_pci_flags_count)) {
> 				/*
> 				 * there's no outstanding PCI any more so:
> 				 * o request a PCI to be sure that the PCI
> 				 *   will wake at some time in the future
> 				 * o flush packed buffers that might still be
> 				 *   hanging around (which can happen if no
> 				 *   further send was requested by the stack)
> 				 */
> 

No, don't remove the word 'then'
Not-Acked-by: Alexandra Winter <wintera@linux.ibm.com>

Jiang, if you want to submit another patch, 
You could split the long sentence:
			if (!atomic_read(&queue->set_pci_flags_count)) {
 				/*
 				 * there's no outstanding PCI any more, so we
-				 * have to request a PCI to be sure the the PCI
- 				 * will wake at some time in the future then we
+				 * have to request a PCI to be sure the PCI
+ 				 * will wake at some time in the future. Then we
 				 * can flush packed buffers that might still be
 				 * hanging around, which can happen if no

I don't think this is a significant improvement in readability, though.

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

end of thread, other threads:[~2022-06-21 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 11:37 [PATCH] net: s390: drop unexpected word "the" in the comments Jiang Jian
2022-06-21 11:58 ` Alexandra Winter
2022-06-21 15:01   ` Joe Perches
     [not found]     ` <tencent_05711A707693017879EC87F7@qq.com>
2022-06-21 15:30       ` Joe Perches
2022-06-21 15:44     ` Alexandra Winter

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