aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2024-02-12 02:25:04 -0800
committerMike Snitzer <snitzer@kernel.org>2024-03-01 09:25:09 -0500
commitf304f6b443a7d5910ac1e29094d9eee5fd767868 (patch)
treeebe27597d7f98f573a6dd8f0344e63fb6aab12f6 /drivers/md
parent1e00d57694bc2f050f73b632ce3822fe28af63d2 (diff)
downloadlinux-f304f6b443a7d5910ac1e29094d9eee5fd767868.tar.gz
dm vdo volume-index: fix an assert statement in start_restoring_volume_sub_index()
Use "==" instead of "=" in ASSERT() statement. Fixes: ef074a31e88e ("dm vdo: implement the volume index") Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com> Signed-off-by: Matthew Sakai <msakai@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-vdo/volume-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-vdo/volume-index.c b/drivers/md/dm-vdo/volume-index.c
index 8731ea1662b1f..eebc19fe7d6f1 100644
--- a/drivers/md/dm-vdo/volume-index.c
+++ b/drivers/md/dm-vdo/volume-index.c
@@ -834,7 +834,7 @@ static int start_restoring_volume_sub_index(struct volume_sub_index *sub_index,
decode_u32_le(buffer, &offset, &header.first_list);
decode_u32_le(buffer, &offset, &header.list_count);
- result = ASSERT(offset = sizeof(buffer),
+ result = ASSERT(offset == sizeof(buffer),
"%zu bytes decoded of %zu expected", offset,
sizeof(buffer));
if (result != UDS_SUCCESS)