Repository navigation
Commit a86fe8b
dm integrity: remove set but not used variables
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/md/dm-integrity.c: In function 'integrity_metadata':
drivers/md/dm-integrity.c:1557:12: warning:
variable 'save_metadata_offset' set but not used [-Wunused-but-set-variable]
drivers/md/dm-integrity.c:1556:12: warning:
variable 'save_metadata_block' set but not used [-Wunused-but-set-variable]
They are never used, so remove it.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>1 parent a5089a9 commit a86fe8b
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | | - | |
1557 | | - | |
1558 | 1556 | | |
1559 | 1557 | | |
1560 | 1558 | | |
| |||
1605 | 1603 | | |
1606 | 1604 | | |
1607 | 1605 | | |
1608 | | - | |
1609 | | - | |
1610 | 1606 | | |
1611 | 1607 | | |
1612 | 1608 | | |
| |||
0 commit comments