diff mbox

[01/16] bcache: Fix indentation

Message ID 20180315150814.9412-2-bart.vanassche@wdc.com (mailing list archive)
State New, archived
Headers show

Commit Message

Bart Van Assche March 15, 2018, 3:07 p.m. UTC
This patch avoids that smatch complains about inconsistent indentation.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
---
 drivers/md/bcache/btree.c     | 2 +-
 drivers/md/bcache/writeback.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Coly Li March 15, 2018, 3:49 p.m. UTC | #1
On 15/03/2018 11:07 PM, Bart Van Assche wrote:
> This patch avoids that smatch complains about inconsistent indentation.
> 
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>

Reviewed-by: Coly Li <colyli@suse.de>

Thanks.

Coly Li

> ---
>  drivers/md/bcache/btree.c     | 2 +-
>  drivers/md/bcache/writeback.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
> index fad9fe8817eb..c30609c54c03 100644
> --- a/drivers/md/bcache/btree.c
> +++ b/drivers/md/bcache/btree.c
> @@ -2170,7 +2170,7 @@ int bch_btree_insert_check_key(struct btree *b, struct btree_op *op,
>  
>  		if (b->key.ptr[0] != btree_ptr ||
>                     b->seq != seq + 1) {
> -                       op->lock = b->level;
> +			op->lock = b->level;
>  			goto out;
>                 }
>  	}
> diff --git a/drivers/md/bcache/writeback.h b/drivers/md/bcache/writeback.h
> index 587b25599856..a102d40a58bc 100644
> --- a/drivers/md/bcache/writeback.h
> +++ b/drivers/md/bcache/writeback.h
> @@ -39,7 +39,7 @@ static inline uint64_t  bcache_flash_devs_sectors_dirty(struct cache_set *c)
>  
>  		if (!d || !UUID_FLASH_ONLY(&c->uuids[i]))
>  			continue;
> -	   ret += bcache_dev_sectors_dirty(d);
> +		ret += bcache_dev_sectors_dirty(d);
>  	}
>  
>  	mutex_unlock(&bch_register_lock);
>
Coly Li March 15, 2018, 4:13 p.m. UTC | #2
On 15/03/2018 11:07 PM, Bart Van Assche wrote:
> This patch avoids that smatch complains about inconsistent indentation.
> 
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>

Reviewed-by: Coly Li <colyli@suse.de>

Thanks.

Coly Li

> ---
>  drivers/md/bcache/btree.c     | 2 +-
>  drivers/md/bcache/writeback.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
> index fad9fe8817eb..c30609c54c03 100644
> --- a/drivers/md/bcache/btree.c
> +++ b/drivers/md/bcache/btree.c
> @@ -2170,7 +2170,7 @@ int bch_btree_insert_check_key(struct btree *b, struct btree_op *op,
>  
>  		if (b->key.ptr[0] != btree_ptr ||
>                     b->seq != seq + 1) {
> -                       op->lock = b->level;
> +			op->lock = b->level;
>  			goto out;
>                 }
>  	}
> diff --git a/drivers/md/bcache/writeback.h b/drivers/md/bcache/writeback.h
> index 587b25599856..a102d40a58bc 100644
> --- a/drivers/md/bcache/writeback.h
> +++ b/drivers/md/bcache/writeback.h
> @@ -39,7 +39,7 @@ static inline uint64_t  bcache_flash_devs_sectors_dirty(struct cache_set *c)
>  
>  		if (!d || !UUID_FLASH_ONLY(&c->uuids[i]))
>  			continue;
> -	   ret += bcache_dev_sectors_dirty(d);
> +		ret += bcache_dev_sectors_dirty(d);
>  	}
>  
>  	mutex_unlock(&bch_register_lock);
>
Michael Lyle March 16, 2018, 6:45 p.m. UTC | #3
On Thu, Mar 15, 2018 at 8:07 AM, Bart Van Assche <bart.vanassche@wdc.com> wrote:
> This patch avoids that smatch complains about inconsistent indentation.
>
> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
LGTM, applying
diff mbox

Patch

diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index fad9fe8817eb..c30609c54c03 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -2170,7 +2170,7 @@  int bch_btree_insert_check_key(struct btree *b, struct btree_op *op,
 
 		if (b->key.ptr[0] != btree_ptr ||
                    b->seq != seq + 1) {
-                       op->lock = b->level;
+			op->lock = b->level;
 			goto out;
                }
 	}
diff --git a/drivers/md/bcache/writeback.h b/drivers/md/bcache/writeback.h
index 587b25599856..a102d40a58bc 100644
--- a/drivers/md/bcache/writeback.h
+++ b/drivers/md/bcache/writeback.h
@@ -39,7 +39,7 @@  static inline uint64_t  bcache_flash_devs_sectors_dirty(struct cache_set *c)
 
 		if (!d || !UUID_FLASH_ONLY(&c->uuids[i]))
 			continue;
-	   ret += bcache_dev_sectors_dirty(d);
+		ret += bcache_dev_sectors_dirty(d);
 	}
 
 	mutex_unlock(&bch_register_lock);