[Coverity] Logically dead code (DEADCODE)

This commit is contained in:
Peter D. Barnes, Jr.
2013-06-26 17:15:56 -07:00
parent dac21f5413
commit f14f746227
2 changed files with 5 additions and 2 deletions

View File

@@ -311,7 +311,8 @@ NixVector::Deserialize (const uint32_t* buffer, uint32_t size)
// return zero if an entire nix-vector was
// not deserialized
return (sizeCheck != 0) ? 0 : 1;
// This check is obviated by prior assert
return 1;
}
void

View File

@@ -1349,7 +1349,9 @@ PacketMetadata::Deserialize (const uint8_t* buffer, uint32_t size)
UpdateTail (tmp);
}
NS_ASSERT (desSize == 0);
return (desSize !=0) ? 0 : 1;
// Return zero if entire meta data was not deserialized
// This check is obviated by prior assert
return 1;
}
uint8_t*