dm integrity: fix the unused variables
PATCH 1/1 dm integrity: fix the unused variables
The value of r is not used, so fixes this as add a goto statement.
Signed-off-by Tian Tao <[email protected]>
--- drivers/md/dm-integrity.c | 1 + 1 file changed, 1 insertion(+)
drivers/md/dm-integrity.c +1 -0
@@ -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