Skip to contentSkip to conversation

master - raid: mark intententional copy and paste

PATCH Zdenek Kabelac 1 participant 1 message Nov 9, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=57c2a1ae8c9f59d301ff34068fa893f04f713fe2
Commit:        57c2a1ae8c9f59d301ff34068fa893f04f713fe2
Parent:        846adadbcc0356e2642ac211de3235f2bfb105a6
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Nov 9 09:30:31 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 9 10:22:52 2015 +0100

raid: mark intententional copy and paste

Coverity: add this extra comment, to let Coverity know this slightly changed copy&paste code is intentional.

---
 lib/metadata/raid_manip.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
lib/metadata/raid_manip.c +1 -0
index c420733..ee1f2be 100644
@@ -1802,6 +1802,7 @@ try_again:
 			lvl = dm_list_item(dm_list_first(&new_data_lvs),
 					   struct lv_list);
 			dm_list_del(&lvl->list);
+			/* coverity[copy_paste_error] intentional */
 			if (!(tmp_names[sd] = _generate_raid_name(lv, "rimage", s)))
 				return_0;
 			if (!set_lv_segment_area_lv(raid_seg, s, lvl->lv, 0,