summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <zeuthen@google.com>2017-05-23 17:45:39 -0400
committerDavid Zeuthen <zeuthen@google.com>2017-05-23 18:06:53 -0400
commitf0893c7ddba2580e25ce9386ec7f4569c9a8b5fb (patch)
tree9d4226deb714c2970c548972606730b773b38db5
parent815c6db10b0741ba10e6c7d3e7fcdc0777bc8918 (diff)
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: David Zeuthen <zeuthen@google.com>
-rw-r--r--drivers/md/dm-verity-avb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/md/dm-verity-avb.c b/drivers/md/dm-verity-avb.c
index 7486dd7fb16d..727aacbb1480 100644
--- a/drivers/md/dm-verity-avb.c
+++ b/drivers/md/dm-verity-avb.c
@@ -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;
}
@@ -224,4 +226,4 @@ MODULE_LICENSE("GPL");
#define MODULE_PARAM_PREFIX "androidboot.vbmeta."
module_param_string(device, avb_vbmeta_device, sizeof(avb_vbmeta_device), 0);
module_param_string(invalidate_on_error, avb_invalidate_on_error,
- sizeof(avb_invalidate_on_error), 0);
+ sizeof(avb_invalidate_on_error), 0);