Skip to content

Commit dcdd467

Browse files
mauelshaMike Snitzer
authored andcommitted
dm log: avoid multiple line dereference
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent fb99e87 commit dcdd467

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/md/dm-log.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,7 @@ static int create_log_context(struct dm_dirty_log *log, struct dm_target *ti,
447447
*/
448448
buf_size =
449449
dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size,
450-
bdev_logical_block_size(lc->header_location.
451-
bdev));
450+
bdev_logical_block_size(lc->header_location.bdev));
452451

453452
if (buf_size > bdev_nr_bytes(dev->bdev)) {
454453
DMWARN("log device %s too small: need %llu bytes",

0 commit comments

Comments
 (0)