Skip to content

Commit

Permalink
Remove unneeded returning value from the gen_image function.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsusid committed May 25, 2022
1 parent 7a162be commit 27d892a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions third_party/cyw30739_sdk/gen_ota_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def main():
print("Error: Insufficient space for the upgrade XS.")
return -1

return gen_image(option, ds_header, ds_data, xs_header, cx_data)
gen_image(option, ds_header, ds_data, xs_header, cx_data)

return 0


def compress_data(option, data, file_suffix):
Expand Down Expand Up @@ -141,16 +143,14 @@ def gen_image(option, ds_header, ds_data, xs_header, cx_data):
break

if header_size % 4 == 0:
return 0
return

# Insert zeroes to align sections to word
inserted_zero_count = 4 - header_size % 4
write_binary(option, ds_header, ds_data, xs_header,
cx_data, inserted_zero_count)
run_ota_image_tool(option, configs)

return 0


def parse_config(option):
configs = {}
Expand Down

0 comments on commit 27d892a

Please sign in to comment.