All of lore.kernel.org
 help / color / mirror / Atom feed
From: R Veera Kumar <vkor@vkten.in>
To: Julia Lawall <julia.lawall@inria.fr>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	outreachy-kernel <outreachy-kernel@googlegroups.com>
Subject: Re: [Outreachy kernel] [PATCH v3 1/3] staging: rtl8723bs: os_dep: Remove commented out code lines
Date: Sat, 21 Mar 2020 13:37:43 +0530	[thread overview]
Message-ID: <20200321080741.GA1942@tulip.local> (raw)
In-Reply-To: <alpine.DEB.2.21.2003210832000.2522@hadrien>

On Sat, Mar 21, 2020 at 08:32:49AM +0100, Julia Lawall wrote:
> 
> 
> On Sat, 21 Mar 2020, R Veera Kumar wrote:
> 
> > Remove multiple commented out code lines.
> > Remove blank lines next to them.
> 
> You don't have the change it, but mentioning removing the blank lines was
> not really necessary.  It is normal that you should clean up the
> adjacent whitespace when you clean up the code.
> 

Sorry I can't make out: "You don't have the change it"

So I keep those commented lines or remove them.

But Greg said in comment to patch:
Again, this is not a long-line comment, it is a code line that is
commented out. "Remove it in a patch previous to this one please."

Veera

> julia
> 
> >
> > Signed-off-by: R Veera Kumar <vkor@vkten.in>
> > ---
> >  drivers/staging/rtl8723bs/os_dep/recv_linux.c | 11 -----------
> >  1 file changed, 11 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
> > index a6491f163272..271b680e4388 100644
> > --- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c
> > +++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
> > @@ -109,11 +109,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt
> >  			struct sta_priv *pstapriv = &padapter->stapriv;
> >  			int bmcast = IS_MCAST(pattrib->dst);
> >
> > -			/* DBG_871X("bmcast =%d\n", bmcast); */
> > -
> >  			if (memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)) {
> > -				/* DBG_871X("not ap psta =%p, addr =%pM\n", psta, pattrib->dst); */
> > -
> >  				if (bmcast) {
> >  					psta = rtw_get_bcmc_stainfo(padapter);
> >  					pskb2 = rtw_skb_clone(pkt);
> > @@ -123,9 +119,6 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt
> >
> >  				if (psta) {
> >  					struct net_device *pnetdev = (struct net_device*)padapter->pnetdev;
> > -
> > -					/* DBG_871X("directly forwarding to the rtw_xmit_entry\n"); */
> > -
> >  					/* skb->ip_summed = CHECKSUM_NONE; */
> >  					pkt->dev = pnetdev;
> >  					skb_set_queue_mapping(pkt, rtw_recv_select_queue(pkt));
> > @@ -234,14 +227,10 @@ static void rtw_os_ksocket_send(struct adapter *padapter, union recv_frame *prec
> >  		if (rx_pid == psta->pid) {
> >  			int i;
> >  			u16 len = *(u16*)(skb->data+ETH_HLEN+2);
> > -			/* u16 ctrl_type = *(u16*)(skb->data+ETH_HLEN+4); */
> > -
> > -			/* DBG_871X("eth, RC: len = 0x%x, ctrl_type = 0x%x\n", len, ctrl_type); */
> >  			DBG_871X("eth, RC: len = 0x%x\n", len);
> >
> >  			for (i = 0; i < len; i++)
> >  				DBG_871X("0x%x\n", *(skb->data+ETH_HLEN+4+i));
> > -				/* DBG_871X("0x%x\n", *(skb->data+ETH_HLEN+6+i)); */
> >
> >  			DBG_871X("eth, RC-end\n");
> >  		}
> > --


  reply	other threads:[~2020-03-21  8:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-21  4:38 [PATCH v3 0/3] staging: rtl8723bs: os_dep: Remove commented code lines, correct longline comments, remove whitespace in code R Veera Kumar
2020-03-21  4:38 ` [PATCH v3 1/3] staging: rtl8723bs: os_dep: Remove commented out code lines R Veera Kumar
2020-03-21  7:32   ` [Outreachy kernel] " Julia Lawall
2020-03-21  8:07     ` R Veera Kumar [this message]
2020-03-21  8:46       ` Julia Lawall
2020-03-21  9:10         ` R Veera Kumar
2020-03-21  9:11           ` Julia Lawall
2020-03-21  4:38 ` [PATCH v3 2/3] staging: rtl8723bs: os_dep: Correct long line comments R Veera Kumar
2020-03-21  4:38 ` [PATCH v3 3/3] staging: rtl8723bs: os_dep: Remove whitespace characters in code line R Veera Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200321080741.GA1942@tulip.local \
    --to=vkor@vkten.in \
    --cc=gregkh@linuxfoundation.org \
    --cc=julia.lawall@inria.fr \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.