Skip to contentSkip to conversation

fix code format

PATCH Applied Robert Wang 2 participants 2 messages Aug 19, 2011 – Aug 22, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix code format

Fix code format to make checkpatch.pl happy.

---
 block.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
block.c +3 -3
index 26910ca..87e83bc 100644
@@ -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;
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 3 lines · Robert Wang

Fix code format to make checkpatch.pl happy.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 21 lines
---
  block.c |    6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)
block.c +3 -3
index 26910ca..87e83bc 100644
@@ -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;