All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] staging: ks7010: remove code in comments.
@ 2017-02-26 16:08 Arushi Singhal
  2017-02-27 14:48 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Arushi Singhal @ 2017-02-26 16:08 UTC (permalink / raw)
  To: gregkh; +Cc: devel, linux-kernel, outreachy-kernel

Commenting Code Is a Bad Idea.
Comments are their to explain the code and how the code achieves its
goal and as codes in the comments  does not explain what the code is
doing so there is no use of commenting them.
So in this patch codes in the comments are removed.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
 changes in v2
 - subject lines is made short.

 drivers/staging/ks7010/ks7010_sdio.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index 2c263f98bdbb..54aa2e2f516f 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -495,10 +495,6 @@ static void ks7010_rw_function(struct work_struct *work)
 	/* wiat after WAKEUP */
 	while (time_after(priv->last_wakeup + ((30 * HZ) / 1000), jiffies)) {
 		DPRINTK(4, "wait after WAKEUP\n");
-/* 
- *   queue_delayed_work(priv->ks_wlan_hw.ks7010sdio_wq,&priv->ks_wlan_hw.rw_wq,
- *   (priv->last_wakeup + ((30*HZ)/1000) - jiffies));
- */
 		dev_info(&priv->ks_wlan_hw.sdio_card->func->dev,
 			 "wake: %lu %lu\n",
 			 priv->last_wakeup + (30 * HZ) / 1000,
-- 
2.11.0



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

* Re: [PATCH v2] staging: ks7010: remove code in comments.
  2017-02-26 16:08 [PATCH v2] staging: ks7010: remove code in comments Arushi Singhal
@ 2017-02-27 14:48 ` Greg KH
  2017-02-27 15:03   ` Arushi Singhal
  0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2017-02-27 14:48 UTC (permalink / raw)
  To: Arushi Singhal; +Cc: devel, outreachy-kernel, linux-kernel

On Sun, Feb 26, 2017 at 09:38:20PM +0530, Arushi Singhal wrote:
> Commenting Code Is a Bad Idea.
> Comments are their to explain the code and how the code achieves its
> goal and as codes in the comments  does not explain what the code is
> doing so there is no use of commenting them.
> So in this patch codes in the comments are removed.
> 
> Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
> ---
>  changes in v2
>  - subject lines is made short.
> 
>  drivers/staging/ks7010/ks7010_sdio.c | 4 ----
>  1 file changed, 4 deletions(-)

This patch does not apply against my staging-testing branch :(


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

* Re: [PATCH v2] staging: ks7010: remove code in comments.
  2017-02-27 14:48 ` Greg KH
@ 2017-02-27 15:03   ` Arushi Singhal
  2017-02-27 15:07     ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 6+ messages in thread
From: Arushi Singhal @ 2017-02-27 15:03 UTC (permalink / raw)
  To: Greg KH; +Cc: devel, outreachy-kernel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 738 bytes --]

On Mon, Feb 27, 2017 at 8:18 PM, Greg KH <gregkh@linuxfoundation.org> wrote:

> On Sun, Feb 26, 2017 at 09:38:20PM +0530, Arushi Singhal wrote:
> > Commenting Code Is a Bad Idea.
> > Comments are their to explain the code and how the code achieves its
> > goal and as codes in the comments  does not explain what the code is
> > doing so there is no use of commenting them.
> > So in this patch codes in the comments are removed.
> >
> > Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
> > ---
> >  changes in v2
> >  - subject lines is made short.
> >
> >  drivers/staging/ks7010/ks7010_sdio.c | 4 ----
> >  1 file changed, 4 deletions(-)
>
> This patch does not apply against my staging-testing branch :(
>

why?
Arushi

[-- Attachment #2: Type: text/html, Size: 1268 bytes --]

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

* Re: [Outreachy kernel] Re: [PATCH v2] staging: ks7010: remove code in comments.
  2017-02-27 15:03   ` Arushi Singhal
@ 2017-02-27 15:07     ` Julia Lawall
  2017-02-27 20:29         ` Tobin C. Harding
  0 siblings, 1 reply; 6+ messages in thread
From: Julia Lawall @ 2017-02-27 15:07 UTC (permalink / raw)
  To: Arushi Singhal; +Cc: Greg KH, devel, outreachy-kernel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]



On Mon, 27 Feb 2017, Arushi Singhal wrote:

>
>
> On Mon, Feb 27, 2017 at 8:18 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
>       On Sun, Feb 26, 2017 at 09:38:20PM +0530, Arushi Singhal wrote:
>       > Commenting Code Is a Bad Idea.
>       > Comments are their to explain the code and how the code
>       achieves its
>       > goal and as codes in the comments  does not explain what the
>       code is
>       > doing so there is no use of commenting them.
>       > So in this patch codes in the comments are removed.
>       >
>       > Signed-off-by: Arushi Singhal
>       <arushisinghal19971997@gmail.com>
>       > ---
>       >  changes in v2
>       >  - subject lines is made short.
>       >
>       >  drivers/staging/ks7010/ks7010_sdio.c | 4 ----
>       >  1 file changed, 4 deletions(-)
>
>       This patch does not apply against my staging-testing branch :(
>
>
> why?

You should figure this out yourself.  Pull Greg's tree again, and try to
apply your patch.  It's deterministic, so you should have the same
information that he has.

julia

> Arushi
>
> --
> You received this message because you are subscribed to the Google Groups
> "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/CA%2BXqjF-7SfgGkcHGhraz2
> R%3D8qV4Vgqiky%2Bu%2BqSJNTMGr__JnTg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
>

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

* Re: [Outreachy kernel] Re: [PATCH v2] staging: ks7010: remove code in comments.
  2017-02-27 15:07     ` [Outreachy kernel] " Julia Lawall
@ 2017-02-27 20:29         ` Tobin C. Harding
  0 siblings, 0 replies; 6+ messages in thread
From: Tobin C. Harding @ 2017-02-27 20:29 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Arushi Singhal, devel, Greg KH, linux-kernel, outreachy-kernel

On Mon, Feb 27, 2017 at 04:07:27PM +0100, Julia Lawall wrote:
> 
> 
> On Mon, 27 Feb 2017, Arushi Singhal wrote:
> 
> >
> >
> > On Mon, Feb 27, 2017 at 8:18 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> >       On Sun, Feb 26, 2017 at 09:38:20PM +0530, Arushi Singhal wrote:
> >       > Commenting Code Is a Bad Idea.
> >       > Comments are their to explain the code and how the code
> >       achieves its
> >       > goal and as codes in the comments  does not explain what the
> >       code is
> >       > doing so there is no use of commenting them.
> >       > So in this patch codes in the comments are removed.
> >       >
> >       > Signed-off-by: Arushi Singhal
> >       <arushisinghal19971997@gmail.com>
> >       > ---
> >       >  changes in v2
> >       >  - subject lines is made short.
> >       >
> >       >  drivers/staging/ks7010/ks7010_sdio.c | 4 ----
> >       >  1 file changed, 4 deletions(-)
> >
> >       This patch does not apply against my staging-testing branch :(
> >
> >
> > why?
> 
> You should figure this out yourself.  Pull Greg's tree again, and try to
> apply your patch.  It's deterministic, so you should have the same
> information that he has.

I have only just worked this out Arushi so I thought I'd share. You
may want to read up on remote tracking branches in git and set up a
branch tracking Greg's staging-testing branch. Then create (checkout
-b) your development branches from that branch.

Good luck,
Tobin.

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

* Re: [Outreachy kernel] Re: [PATCH v2] staging: ks7010: remove code in comments.
@ 2017-02-27 20:29         ` Tobin C. Harding
  0 siblings, 0 replies; 6+ messages in thread
From: Tobin C. Harding @ 2017-02-27 20:29 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Arushi Singhal, devel, Greg KH, linux-kernel, outreachy-kernel

On Mon, Feb 27, 2017 at 04:07:27PM +0100, Julia Lawall wrote:
> 
> 
> On Mon, 27 Feb 2017, Arushi Singhal wrote:
> 
> >
> >
> > On Mon, Feb 27, 2017 at 8:18 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> >       On Sun, Feb 26, 2017 at 09:38:20PM +0530, Arushi Singhal wrote:
> >       > Commenting Code Is a Bad Idea.
> >       > Comments are their to explain the code and how the code
> >       achieves its
> >       > goal and as codes in the comments� does not explain what the
> >       code is
> >       > doing so there is no use of commenting them.
> >       > So in this patch codes in the comments are removed.
> >       >
> >       > Signed-off-by: Arushi Singhal
> >       <arushisinghal19971997@gmail.com>
> >       > ---
> >       >� changes in v2
> >       >� - subject lines is made short.
> >       >
> >       >� drivers/staging/ks7010/ks7010_sdio.c | 4 ----
> >       >� 1 file changed, 4 deletions(-)
> >
> >       This patch does not apply against my staging-testing branch :(
> >
> >
> > why?
> 
> You should figure this out yourself.  Pull Greg's tree again, and try to
> apply your patch.  It's deterministic, so you should have the same
> information that he has.

I have only just worked this out Arushi so I thought I'd share. You
may want to read up on remote tracking branches in git and set up a
branch tracking Greg's staging-testing branch. Then create (checkout
-b) your development branches from that branch.

Good luck,
Tobin.


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

end of thread, other threads:[~2017-02-27 21:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-26 16:08 [PATCH v2] staging: ks7010: remove code in comments Arushi Singhal
2017-02-27 14:48 ` Greg KH
2017-02-27 15:03   ` Arushi Singhal
2017-02-27 15:07     ` [Outreachy kernel] " Julia Lawall
2017-02-27 20:29       ` Tobin C. Harding
2017-02-27 20:29         ` Tobin C. Harding

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.