Remove the redundant conditional in the validateParity function (#16866)

This commit is contained in:
mstmdev 2023-03-24 05:06:22 +08:00 committed by GitHub
parent 5e3bfd2148
commit 2d51e42305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ func validateParity(ssParity, rrsParity, setDriveCount int) (err error) {
}
if ssParity > 0 && rrsParity > 0 {
if ssParity > 0 && ssParity < rrsParity {
if ssParity < rrsParity {
return fmt.Errorf("Standard storage class parity drives %d should be greater than or equal to Reduced redundancy storage class parity drives %d", ssParity, rrsParity)
}
}