Skip to content

Commit

Permalink
bcache: Remove redundant block_size assignment
Browse files Browse the repository at this point in the history
We have assigned sb->block_size before the switch,
so remove the redundant one.

Reviewed-by: Coly Li <[email protected]>
Signed-off-by: Yijing Wang <[email protected]>
Acked-by: Eric Wheeler <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
YijingWang authored and axboe committed Jul 5, 2016
1 parent 7abc70d commit 89b920e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/bcache/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ static const char *read_super(struct cache_sb *sb, struct block_device *bdev,
case BCACHE_SB_VERSION_CDEV:
case BCACHE_SB_VERSION_CDEV_WITH_UUID:
sb->nbuckets = le64_to_cpu(s->nbuckets);
sb->block_size = le16_to_cpu(s->block_size);
sb->bucket_size = le16_to_cpu(s->bucket_size);

sb->nr_in_set = le16_to_cpu(s->nr_in_set);
Expand Down

0 comments on commit 89b920e

Please sign in to comment.