ID: 3608022 - 'lib/ipmi_fru.c' - unsigned errors

Commit removes 'size' check from ipmi_fru_get_multirec_from_file() as
an unsigned value can't be less than zero(0).
This error has been introduced by ID#3600911.

Reported-by: Ales Ledvinka
This commit is contained in:
Zdenek Styblik 2013-03-21 11:32:09 +00:00
parent 3ea41bda4b
commit 7a74ab32a8

View File

@ -3856,9 +3856,6 @@ ipmi_fru_get_multirec_from_file(char * pFileName, uint8_t * pBufArea,
{
FILE * pFile;
uint32_t len = 0;
if (size < 0) {
return (-1);
}
if (pFileName == NULL) {
lprintf(LOG_ERR, "Invalid file name given.");
return (-1);