drivers/ipmi: Change type of custom_count from int to size_t
The variable `custom_count` is the number of custom fields, so only holds non-negative values, so change the struct member type from int to size_t. Change-Id: Ic35aafefc870092298523ba2e10adf4fcb687a01 Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60790 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
7be44d2ad6
commit
2dcc7224a0
|
@ -111,7 +111,7 @@ struct fru_product_info {
|
||||||
char *asset_tag;
|
char *asset_tag;
|
||||||
char *fru_file_id;
|
char *fru_file_id;
|
||||||
char **product_custom;
|
char **product_custom;
|
||||||
int custom_count; /* Number of custom fields */
|
size_t custom_count; /* Number of custom fields */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fru_board_info {
|
struct fru_board_info {
|
||||||
|
@ -121,7 +121,7 @@ struct fru_board_info {
|
||||||
char *part_number;
|
char *part_number;
|
||||||
char *fru_file_id;
|
char *fru_file_id;
|
||||||
char **board_custom;
|
char **board_custom;
|
||||||
int custom_count;
|
size_t custom_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fru_chassis_info {
|
struct fru_chassis_info {
|
||||||
|
@ -129,7 +129,7 @@ struct fru_chassis_info {
|
||||||
char *chassis_partnumber;
|
char *chassis_partnumber;
|
||||||
char *serial_number;
|
char *serial_number;
|
||||||
char **chassis_custom;
|
char **chassis_custom;
|
||||||
int custom_count;
|
size_t custom_count;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct fru_info_str {
|
struct fru_info_str {
|
||||||
|
|
Loading…
Reference in New Issue