Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89b920e0 authored by Yijing Wang's avatar Yijing Wang Committed by Jens Axboe
Browse files

bcache: Remove redundant block_size assignment



We have assigned sb->block_size before the switch,
so remove the redundant one.

Reviewed-by: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Acked-by: default avatarEric Wheeler <bcache@lists.ewheeler.net>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 7abc70d7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);