All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: most: fix empty /* line in block comments
@ 2020-10-24 18:31 Amarjargal Gundjalam
  2020-10-25  9:09 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Amarjargal Gundjalam @ 2020-10-24 18:31 UTC (permalink / raw)
  To: gregkh, outreachy-kernel

fix the following warning generated by checkpatch:
networking block comments don't use an empty /* line, use /* Comment.

Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com>
---
 drivers/staging/most/net/net.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
index b6fecb06a0e6..bc0aefe804b6 100644
--- a/drivers/staging/most/net/net.c
+++ b/drivers/staging/most/net/net.c
@@ -171,8 +171,7 @@ static int most_nd_set_mac_address(struct net_device *dev, void *p)
 		(dev->dev_addr[0] == 0 && dev->dev_addr[1] == 0 &&
 		 dev->dev_addr[2] == 0 && dev->dev_addr[3] == 0);
 
-	/*
-	 * Set default MTU for the given packet type.
+	/* Set default MTU for the given packet type.
 	 * It is still possible to change MTU using ip tools afterwards.
 	 */
 	dev->mtu = nd->is_mamac ? MAMAC_DATA_LEN : ETH_DATA_LEN;
@@ -388,8 +387,7 @@ static int comp_disconnect_channel(struct most_interface *iface,
 		ch->linked = false;
 		spin_unlock_irqrestore(&list_lock, flags);
 
-		/*
-		 * do not call most_stop_channel() here, because channels are
+		/* do not call most_stop_channel() here, because channels are
 		 * going to be closed in ndo_stop() after unregister_netdev()
 		 */
 		unregister_netdev(nd->dev);
-- 
2.25.1



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

* Re: [PATCH] staging: most: fix empty /* line in block comments
  2020-10-24 18:31 [PATCH] staging: most: fix empty /* line in block comments Amarjargal Gundjalam
@ 2020-10-25  9:09 ` Greg KH
  2020-10-26  2:52   ` Amarjargal Gundjalam
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2020-10-25  9:09 UTC (permalink / raw)
  To: Amarjargal Gundjalam; +Cc: outreachy-kernel

On Sun, Oct 25, 2020 at 02:31:34AM +0800, Amarjargal Gundjalam wrote:
> fix the following warning generated by checkpatch:
> networking block comments don't use an empty /* line, use /* Comment.
> 
> Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com>
> ---
>  drivers/staging/most/net/net.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
> index b6fecb06a0e6..bc0aefe804b6 100644
> --- a/drivers/staging/most/net/net.c
> +++ b/drivers/staging/most/net/net.c
> @@ -171,8 +171,7 @@ static int most_nd_set_mac_address(struct net_device *dev, void *p)
>  		(dev->dev_addr[0] == 0 && dev->dev_addr[1] == 0 &&
>  		 dev->dev_addr[2] == 0 && dev->dev_addr[3] == 0);
>  
> -	/*
> -	 * Set default MTU for the given packet type.
> +	/* Set default MTU for the given packet type.

This is a networking driver, so no, the comment style is correct, sorry
for the confusion.

greg k-h


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

* Re: [PATCH] staging: most: fix empty /* line in block comments
  2020-10-25  9:09 ` Greg KH
@ 2020-10-26  2:52   ` Amarjargal Gundjalam
  0 siblings, 0 replies; 3+ messages in thread
From: Amarjargal Gundjalam @ 2020-10-26  2:52 UTC (permalink / raw)
  To: Greg KH, outreachy-kernel@googlegroups.com

On Sun, 2020-10-25 at 10:09 +0100, Greg KH wrote:
> On Sun, Oct 25, 2020 at 02:31:34AM +0800, Amarjargal Gundjalam wrote:
> > fix the following warning generated by checkpatch:
> > networking block comments don't use an empty /* line, use /*
> > Comment.
> > 
> > Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com>
> > ---
> >  drivers/staging/most/net/net.c | 6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> > 
> > diff --git a/drivers/staging/most/net/net.c
> > b/drivers/staging/most/net/net.c
> > index b6fecb06a0e6..bc0aefe804b6 100644
> > --- a/drivers/staging/most/net/net.c
> > +++ b/drivers/staging/most/net/net.c
> > @@ -171,8 +171,7 @@ static int most_nd_set_mac_address(struct
> > net_device *dev, void *p)
> >  		(dev->dev_addr[0] == 0 && dev->dev_addr[1] == 0 &&
> >  		 dev->dev_addr[2] == 0 && dev->dev_addr[3] == 0);
> >  
> > -	/*
> > -	 * Set default MTU for the given packet type.
> > +	/* Set default MTU for the given packet type.
> 
> This is a networking driver, so no, the comment style is correct,
> sorry
> for the confusion.
> 
> greg k-h

Oh ok. Got it.



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

end of thread, other threads:[~2020-10-26  2:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-24 18:31 [PATCH] staging: most: fix empty /* line in block comments Amarjargal Gundjalam
2020-10-25  9:09 ` Greg KH
2020-10-26  2:52   ` Amarjargal Gundjalam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.