dm space map disk: remove redundant initialization of variable index
Subsystems (2)
PATCH 1/1 dm space map disk: remove redundant initialization of variable index
From: Colin Ian King <[email protected]>
The variable index is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- drivers/md/persistent-data/dm-space-map-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/persistent-data/dm-space-map-common.c +1 -1
@@ -577,7 +577,7 @@ static int __sm_ll_inc_overflow(struct ll_disk *ll, dm_block_t b, struct inc_constatic int sm_ll_inc_overflow (struct ll_disk *ll,dm_block_t b,struct inc_context *ic) { -int index =-1 ; +int index;struct btree_node *n;__le32 *v_ptr;uint32_t rc;
Signature · 1 line
2.31.1