Skip to content

Commit

Permalink
style: trailing whitespace is the root of all evil
Browse files Browse the repository at this point in the history
Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
  • Loading branch information
cujomalainey authored and lgirdwood committed Jul 31, 2023
1 parent d20f1d8 commit 8c84400
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions config/lnl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ count = 20
12, 0, 0, 0, 20480, 33394000, 48, 51, 0, 0, 0,
13, 0, 0, 0, 20480, 36140000, 16, 96, 0, 0, 0,
14, 0, 0, 0, 20480, 38003000, 16, 68, 0, 0, 0,
15, 0, 0, 0, 20480, 39787000, 45, 51, 0, 0, 0]
15, 0, 0, 0, 20480, 39787000, 45, 51, 0, 0, 0]

[[module.entry]]
name = "SRC"
Expand Down Expand Up @@ -461,7 +461,7 @@ count = 20

# mod_cfg [PAR_0 PAR_1 PAR_2 PAR_3 IS_BYTES CPS IBS OBS MOD_FLAGS CPC OBLS]
mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 0, 0]

# Aria module config
[[module.entry]]
name = "ARIA"
Expand Down
4 changes: 2 additions & 2 deletions config/mtl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ count = 20
12, 0, 0, 0, 20480, 33394000, 48, 51, 0, 0, 0,
13, 0, 0, 0, 20480, 36140000, 16, 96, 0, 0, 0,
14, 0, 0, 0, 20480, 38003000, 16, 68, 0, 0, 0,
15, 0, 0, 0, 20480, 39787000, 45, 51, 0, 0, 0]
15, 0, 0, 0, 20480, 39787000, 45, 51, 0, 0, 0]

[[module.entry]]
name = "SRC"
Expand Down Expand Up @@ -461,7 +461,7 @@ count = 20

# mod_cfg [PAR_0 PAR_1 PAR_2 PAR_3 IS_BYTES CPS IBS OBS MOD_FLAGS CPC OBLS]
mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 0, 0]

# Aria module config
[[module.entry]]
name = "ARIA"
Expand Down
2 changes: 1 addition & 1 deletion src/file_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int simple_write_module(struct image *image, struct manifest_module *modu
return file_error("cant seek to header", image->out_file);

count = fwrite(&hdr, sizeof(hdr), 1, image->out_fd);
if (count != 1)
if (count != 1)
return file_error("failed to write section header", image->out_file);

err = fseek(image->out_fd, ptr_cur, SEEK_SET);
Expand Down
4 changes: 2 additions & 2 deletions src/hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int hash_update(struct hash_context *context, const void *data, size_t size)
return context->error;

assert(context->state == HS_UPDATE);

if (!EVP_DigestUpdate(context->context, data, size))
return hash_error(context, EINVAL, "Unable to update hash context.");

Expand Down Expand Up @@ -168,7 +168,7 @@ int hash_single(const void *data, size_t size, const EVP_MD *algo, void *output,
assert(algo);
assert(data);
assert(output);

//algo_out_size = EVP_MD_get_size(algo);
algo_out_size = EVP_MD_size(algo);
if (algo_out_size <= 0)
Expand Down

0 comments on commit 8c84400

Please sign in to comment.