mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
bloblist: Drop spare value from bloblist record
Drop spare value from bloblist record header. For now it is still present in the header, with an underscore, so that tests continue to pass. Signed-off-by: Simon Glass <sjg@chromium.org> Co-developed-by: Raymond Mao <raymond.mao@linaro.org> Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
This commit is contained in:
parent
1f06ed41cc
commit
47e1047b0c
2 changed files with 1 additions and 3 deletions
|
@ -165,7 +165,6 @@ static int bloblist_addrec(uint tag, int size, int align_log2,
|
||||||
rec->tag = tag;
|
rec->tag = tag;
|
||||||
rec->hdr_size = data_start - hdr->alloced;
|
rec->hdr_size = data_start - hdr->alloced;
|
||||||
rec->size = size;
|
rec->size = size;
|
||||||
rec->spare = 0;
|
|
||||||
|
|
||||||
/* Zero the record data */
|
/* Zero the record data */
|
||||||
memset((void *)rec + rec_hdr_size(rec), '\0', rec->size);
|
memset((void *)rec + rec_hdr_size(rec), '\0', rec->size);
|
||||||
|
|
|
@ -205,13 +205,12 @@ struct bloblist_hdr {
|
||||||
* record's data starts at this offset from the start of the record
|
* record's data starts at this offset from the start of the record
|
||||||
* @size: Size of record in bytes, excluding the header size. This does not
|
* @size: Size of record in bytes, excluding the header size. This does not
|
||||||
* need to be aligned (e.g. 3 is OK).
|
* need to be aligned (e.g. 3 is OK).
|
||||||
* @spare: Spare space for other things
|
|
||||||
*/
|
*/
|
||||||
struct bloblist_rec {
|
struct bloblist_rec {
|
||||||
u32 tag;
|
u32 tag;
|
||||||
u32 hdr_size;
|
u32 hdr_size;
|
||||||
u32 size;
|
u32 size;
|
||||||
u32 spare;
|
u32 _spare;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue