Skip to content

Commit 7fafc98

Browse files
sunyuechipablodelara
authored andcommitted
Fix xor_gen test pass when len % 256 == 0
If len > 255, the return value will be % 256, which causes the test to incorrectly pass Signed-off-by: sunyuechi <[email protected]>
1 parent ba874ba commit 7fafc98

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

raid/raid_base.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,5 @@ xor_check_base(int vects, int len, void **array)
138138
break;
139139
}
140140
}
141-
if (fail && len > 0)
142-
return len;
143141
return fail;
144142
}

0 commit comments

Comments
 (0)