diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-01-25 23:31:55 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 14:23:06 -0500 |
commit | 255e2646496fcbf836a3dfe1b535692f09f11b45 (patch) | |
tree | 2f049f43246d6b0c9445818eb0a2d91ac4a61e69 /drivers/md/dm-integrity.c | |
parent | 96422281baf57f4d9418581fdfaca9617bb805e1 (diff) | |
download | linux-255e2646496fcbf836a3dfe1b535692f09f11b45.tar.gz linux-255e2646496fcbf836a3dfe1b535692f09f11b45.tar.bz2 linux-255e2646496fcbf836a3dfe1b535692f09f11b45.zip |
dm: address indent/space issues
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.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 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index efae9d7e3a56..46167422164e 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -2301,7 +2301,6 @@ offload_to_thread: else skip_check: dec_in_flight(dio); - } else { INIT_WORK(&dio->work, integrity_metadata); queue_work(ic->metadata_wq, &dio->work); @@ -4085,7 +4084,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned int argc, char **argv } else if (sscanf(opt_string, "block_size:%u%c", &val, &dummy) == 1) { if (val < 1 << SECTOR_SHIFT || val > MAX_SECTORS_PER_BLOCK << SECTOR_SHIFT || - (val & (val -1))) { + (val & (val - 1))) { r = -EINVAL; ti->error = "Invalid block_size argument"; goto bad; @@ -4405,7 +4404,7 @@ try_smaller_buffer: if (ic->internal_hash) { size_t recalc_tags_size; ic->recalc_wq = alloc_workqueue("dm-integrity-recalc", WQ_MEM_RECLAIM, 1); - if (!ic->recalc_wq ) { + if (!ic->recalc_wq) { ti->error = "Cannot allocate workqueue"; r = -ENOMEM; goto bad; |