mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
bloblist: Tidy up a few comments and code-style nits
Add a messing error code to bloblist_new() and tidy up the line length in bloblist_addrec(). Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -59,11 +59,10 @@ static int bloblist_addrec(uint tag, int size, struct bloblist_rec **recp)
|
||||
struct bloblist_rec *rec;
|
||||
int new_alloced;
|
||||
|
||||
new_alloced = hdr->alloced + sizeof(*rec) +
|
||||
ALIGN(size, BLOBLIST_ALIGN);
|
||||
new_alloced = hdr->alloced + sizeof(*rec) + ALIGN(size, BLOBLIST_ALIGN);
|
||||
if (new_alloced >= hdr->size) {
|
||||
log(LOGC_BLOBLIST, LOGL_ERR,
|
||||
"Failed to allocate %x bytes size=%x, need size>=%x\n",
|
||||
"Failed to allocate %x bytes size=%x, need size=%x\n",
|
||||
size, hdr->size, new_alloced);
|
||||
return log_msg_ret("bloblist add", -ENOSPC);
|
||||
}
|
||||
|
Reference in New Issue
Block a user