Patchwork fix code format

login
register
mail settings
Submitter Robert Wang
Date Aug. 19, 2011, 9:17 a.m.
Message ID <1313745432-31662-1-git-send-email-wdongxu@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/110577/
State New
Headers show

Comments

Robert Wang - Aug. 19, 2011, 9:17 a.m.
Fix code format to make checkpatch.pl happy.

Signed-off-by: Robert Wang <wdongxu@linux.vnet.ibm.com>
---
 block.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Anthony Liguori - Aug. 22, 2011, 4:32 p.m.
On 08/19/2011 04:17 AM, Robert Wang wrote:
> Fix code format to make checkpatch.pl happy.
>
> Signed-off-by: Robert Wang<wdongxu@linux.vnet.ibm.com>

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
>   block.c |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/block.c b/block.c
> index 26910ca..87e83bc 100644
> --- a/block.c
> +++ b/block.c
> @@ -2251,9 +2251,9 @@ BlockDriverAIOCB *bdrv_aio_readv(BlockDriverState *bs, int64_t sector_num,
>                                 cb, opaque);
>
>       if (ret) {
> -	/* Update stats even though technically transfer has not happened. */
> -	bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
> -	bs->rd_ops ++;
> +        /* Update stats even though technically transfer has not happened. */
> +        bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
> +        bs->rd_ops++;
>       }
>
>       return ret;

Patch

diff --git a/block.c b/block.c
index 26910ca..87e83bc 100644
--- a/block.c
+++ b/block.c
@@ -2251,9 +2251,9 @@  BlockDriverAIOCB *bdrv_aio_readv(BlockDriverState *bs, int64_t sector_num,
                               cb, opaque);
 
     if (ret) {
-	/* Update stats even though technically transfer has not happened. */
-	bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
-	bs->rd_ops ++;
+        /* Update stats even though technically transfer has not happened. */
+        bs->rd_bytes += (unsigned) nb_sectors * BDRV_SECTOR_SIZE;
+        bs->rd_ops++;
     }
 
     return ret;