summaryrefslogtreecommitdiff
path: root/drivers/md/bcache
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2016-07-04 01:23:41 (GMT)
committerJens Axboe <axboe@fb.com>2016-07-05 17:34:50 (GMT)
commit89b920e0031673882e2217189c655dd89d5c1553 (patch)
tree2849621b01ef0042650537fc1fdaaaad274e5ea1 /drivers/md/bcache
parent7abc70d7007757ac1c0e87c57f39cd79f50a632f (diff)
downloadlinux-89b920e0031673882e2217189c655dd89d5c1553.tar.xz
bcache: Remove redundant block_size assignment
We have assigned sb->block_size before the switch, so remove the redundant one. Reviewed-by: Coly Li <colyli@suse.de> Signed-off-by: Yijing Wang <wangyijing@huawei.com> Acked-by: Eric Wheeler <bcache@lists.ewheeler.net> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/bcache')
-rw-r--r--drivers/md/bcache/super.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index c3138f6..88ef6d1 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -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);