diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2023-01-31 14:09:41 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-02 14:26:09 -0500 |
commit | 5cd6d1d53a1f74222e73d8b42ab7ecf28ee2f34f (patch) | |
tree | a67140a731419f9ce45be334cf877136dad23810 /drivers/md/dm-integrity.c | |
parent | fc772580a349f2b1349e85629be97e59f6347cdb (diff) | |
download | linux-5cd6d1d53a1f74222e73d8b42ab7ecf28ee2f34f.tar.gz linux-5cd6d1d53a1f74222e73d8b42ab7ecf28ee2f34f.tar.bz2 linux-5cd6d1d53a1f74222e73d8b42ab7ecf28ee2f34f.zip |
dm integrity: Remove bi_sector that's only used by commented debug code
drivers/md/dm-integrity.c:1738:13: warning: variable 'bi_sector' set but not used.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3895
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r-- | drivers/md/dm-integrity.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 1388ee35571e..c62c21aadf32 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -1735,7 +1735,6 @@ static void integrity_metadata(struct work_struct *w) } if (unlikely(dio->op == REQ_OP_DISCARD)) { - sector_t bi_sector = dio->bio_details.bi_iter.bi_sector; unsigned bi_size = dio->bio_details.bi_iter.bi_size; unsigned max_size = likely(checksums != checksums_onstack) ? PAGE_SIZE : HASH_MAX_DIGESTSIZE; unsigned max_blocks = max_size / ic->tag_size; @@ -1752,13 +1751,7 @@ static void integrity_metadata(struct work_struct *w) goto error; } - /*if (bi_size < this_step_blocks << (SECTOR_SHIFT + ic->sb->log2_sectors_per_block)) { - printk("BUGG: bi_sector: %llx, bi_size: %u\n", bi_sector, bi_size); - printk("BUGG: this_step_blocks: %u\n", this_step_blocks); - BUG(); - }*/ bi_size -= this_step_blocks << (SECTOR_SHIFT + ic->sb->log2_sectors_per_block); - bi_sector += this_step_blocks << ic->sb->log2_sectors_per_block; } if (likely(checksums != checksums_onstack)) |