mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
binman: Clarify use of False when obtaining data
This means that the data is not yet available. Update some comments to make this clearer. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0b079fcb09
commit
4331d66661
2 changed files with 4 additions and 2 deletions
|
@ -582,7 +582,8 @@ class Entry(object):
|
|||
|
||||
Returns:
|
||||
bytes content of the entry, excluding any padding. If the entry is
|
||||
compressed, the compressed data is returned
|
||||
compressed, the compressed data is returned. If the entry data
|
||||
is not yet available, False can be returned
|
||||
"""
|
||||
self.Detail('GetData: size %s' % to_hex_size(self.data))
|
||||
return self.data
|
||||
|
|
|
@ -265,6 +265,7 @@ class Entry_section(Entry):
|
|||
|
||||
Args:
|
||||
entry: Entry to check
|
||||
entry_data: Data for the entry, False if is null
|
||||
|
||||
Returns:
|
||||
Contents of the entry along with any pad bytes before and
|
||||
|
@ -678,7 +679,7 @@ class Entry_section(Entry):
|
|||
"""
|
||||
def _CheckDone(entry):
|
||||
if entry != skip_entry:
|
||||
if not entry.ObtainContents():
|
||||
if entry.ObtainContents() is False:
|
||||
next_todo.append(entry)
|
||||
return entry
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue