Fix clang compile time error
Removed unnecessary check that metadata index was not negative. Check is unneeded because type is unsigned and as such can not be negative. Change-Id: I72eddf78b25b3ff9bedbd596095f04be855c3817 Closes-Bug: 1587954
This commit is contained in:
parent
3b8ee7d108
commit
f60dcfcc16
|
@ -1087,7 +1087,7 @@ int liberasurecode_verify_fragment_metadata(ec_backend_t be,
|
|||
{
|
||||
int k = be->args.uargs.k;
|
||||
int m = be->args.uargs.m;
|
||||
if (md->idx < 0 || (md->idx > (k + m))) {
|
||||
if (md->idx > (k + m)) {
|
||||
return 1;
|
||||
}
|
||||
if (md->backend_id != be->common.id) {
|
||||
|
|
Loading…
Reference in New Issue