Skip to contentSkip to conversation

dm integrity: fix the unused variables

PATCH New Tian Tao 1 participant 1 message Apr 14, 2021 Device mapper

lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 dm integrity: fix the unused variables

The value of r is not used, so fixes this as add a goto statement.

---
 drivers/md/dm-integrity.c | 1 +
 1 file changed, 1 insertion(+)
drivers/md/dm-integrity.c +1 -0
index fed8a7c..6977422 100644
@@ -4049,6 +4049,7 @@ static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)
 			if (val >= (uint64_t)UINT_MAX * 1000 / HZ) {
 				r = -EINVAL;
 				ti->error = "Invalid bitmap_flush_interval argument";
+				goto bad;
 			}
 			ic->bitmap_flush_interval = msecs_to_jiffies(val);
 		} else if (!strncmp(opt_string, "internal_hash:", strlen("internal_hash:"))) {
Signature · 6 lines
2.7.4

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel