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

Commit f0893c7d authored by David Zeuthen's avatar David Zeuthen
Browse files

ANDROID: AVB: Fix linter errors.



Various other kernel trees complained about style problems with
dm-verity-avb.c, specifically some lines being wider than 80
characters and spaces being used instead of tabs. With these changes
checkpatch.pl is happy:

 $ scripts/checkpatch.pl --file drivers/md/dm-verity-avb.c
 total: 0 errors, 0 warnings, 229 lines checked

 drivers/md/dm-verity-avb.c has no obvious style problems and is ready for submission.

Bug: None
Test: Compiles.
Change-Id: I08913adf61c5bf2b0f78f7d9e18dbe93feaba9f7
Signed-off-by: default avatarDavid Zeuthen <zeuthen@google.com>
parent 815c6db1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -37,7 +37,9 @@ static int invalidate_vbmeta_submit(struct bio *bio,

	bio->bi_iter.bi_sector = 0;
	if (access_last_sector) {
		sector_t last_sector = (i_size_read(bdev->bd_inode)>>SECTOR_SHIFT) - 1;
		sector_t last_sector;

		last_sector = (i_size_read(bdev->bd_inode)>>SECTOR_SHIFT) - 1;
		bio->bi_iter.bi_sector = last_sector;
	}
	if (!bio_add_page(bio, page, PAGE_SIZE, 0)) {
@@ -118,7 +120,7 @@ static int invalidate_vbmeta(dev_t vbmeta_devt)
			goto failed_to_submit_read;
		}
		if (memcmp("AVBf", page_address(page) + offset, 4) != 0) {
			DMERR("invalidate_vbmeta called on non-vbmeta partition");
			DMERR("invalidate_vbmeta on non-vbmeta partition");
			ret = -EINVAL;
			goto invalid_header;
		}