Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Mar 24, 2023
1 parent 05b9c4a commit 50f3704
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/handle_sign_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "handle_sign_message.h"


static int scan_header_for_signer(const uint32_t *derivation_path,
uint32_t derivation_path_length,
size_t *signer_index,
Expand Down
1 change: 0 additions & 1 deletion src/ui/get_pubkey_bagl.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ UX_FLOW(ux_display_public_flow,
&ux_display_public_flow_6_step,
&ux_display_public_flow_7_step);


void ui_get_public_key(void) {
ux_flow_init(0, ux_display_public_flow, NULL);
}
Expand Down
12 changes: 5 additions & 7 deletions src/ui/sign_message_bagl.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ UX_STEP_CB(ux_reject_step,
});

#define MAX_FLOW_STEPS_ONCHAIN \
(MAX_TRANSACTION_SUMMARY_ITEMS \
+ 1 /* approve */ \
(MAX_TRANSACTION_SUMMARY_ITEMS + 1 /* approve */ \
+ 1 /* reject */ \
+ 1 /* FLOW_END_STEP */ \
)
Expand All @@ -77,11 +76,10 @@ else if utf8:
if ascii:
- message text
*/
#define MAX_FLOW_STEPS_OFFCHAIN \
(7 \
+ 1 /* approve */ \
+ 1 /* reject */ \
+ 1 /* FLOW_END_STEP */ \
#define MAX_FLOW_STEPS_OFFCHAIN \
(7 + 1 /* approve */ \
+ 1 /* reject */ \
+ 1 /* FLOW_END_STEP */ \
)
static ux_flow_step_t const *flow_steps[MAX(MAX_FLOW_STEPS_ONCHAIN, MAX_FLOW_STEPS_OFFCHAIN)];

Expand Down
2 changes: 1 addition & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int read_derivation_path(const uint8_t *data_buffer,

uint8_t set_result_sign_message(void);

#endif //_UTILS_H_
#endif //_UTILS_H_

// Outdated ?
#ifdef TEST
Expand Down

0 comments on commit 50f3704

Please sign in to comment.