All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [Patch 1/5] Staging: winbond: Changed c99 comments to c89 comments
Date: Wed, 26 Sep 2012 20:18:54 +0000	[thread overview]
Message-ID: <20120926201854.GC4587@mwanda> (raw)
In-Reply-To: <50634165.3010701@gmail.com>

On Wed, Sep 26, 2012 at 11:24:45PM +0530, Harsh Kumar wrote:
> checkpatch cleanup: Changed c99 comments to c89 comments
> 
> Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com>

Looks fine.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>

As you're updating these, feel free to read them and correct grammar
and spelling mistakes.  If the comment is not needed then go ahead
and delete it.

You can do all that in the same patch I think and it's no problem.

> -		TSTATUS.value = T02.value;  //20061009 anson's endian
> +		TSTATUS.value = T02.value;  /* 20061009 anson's endian */
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^
These type of comments come from people who don't use version
control.  :P  Delete them.

>  		Mds_SendComplete( adapter, &TSTATUS );
>  		T02.value = cpu_to_le32(pltmp[i]) >> 8;
>  	}
> @@ -262,9 +263,7 @@ static void Wb35Tx_EP2VM(struct wbsoft_p
>  	if (pWb35Tx->tx_halt)
>  		goto error;
>  
> -	//
> -	// Issuing URB
> -	//
> +	/* Issuing URB */

This is sort of an obvious comment.  Also it's copied in several
places.  Feel free to delete it if it looks obvious to you, but if
you're not sure then leave it in.


>  	usb_fill_int_urb( pUrb, pHwData->udev, usb_rcvintpipe(pHwData->udev,2),
>  			  pltmp, MAX_INTERRUPT_LENGTH, Wb35Tx_EP2VM_complete, adapter, 32);
>  
> @@ -287,7 +286,7 @@ void Wb35Tx_EP2VM_start(struct wbsoft_pr
>  	struct hw_data * pHwData = &adapter->sHwData;
>  	struct wb35_tx *pWb35Tx = &pHwData->Wb35Tx;
>  
> -	// Allow only one thread to run into function
> +	/* Allow only one thread to run into function */
>  	if (atomic_inc_return(&pWb35Tx->TxResultCount) = 1) {
>  		pWb35Tx->EP2vm_state = VM_RUNNING;
>  		Wb35Tx_EP2VM(adapter);Changed c99 comments to c89 comments
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Somehow your patch got corrupted a bit but it still applies fine
with fuzz.

regards,
dan carpenter

  reply	other threads:[~2012-09-26 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26 17:55 [Patch 1/5] Staging: winbond: Changed c99 comments to c89 comments Harsh Kumar
2012-09-26 20:18 ` Dan Carpenter [this message]
2012-09-26 21:02 ` Greg KH
2012-09-27  3:47 ` Harsh 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=20120926201854.GC4587@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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.