Skip to content

Commit

Permalink
misc: minor cleanings
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Nov 23, 2023
1 parent 90f32e4 commit e759163
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ DEFINES += U2F_PROXY_MAGIC=\"MOON\"
DEFINES += HAVE_IO_U2F HAVE_U2F

# Enabling debug PRINTF
#DEBUG = 0
ifneq ($(DEBUG),0)
# Debug options
DEFINES += DEBUG_HWDEVICE
Expand Down
1 change: 1 addition & 0 deletions src/monero_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
void __attribute__((noreturn)) app_exit(void);

void __attribute__((noreturn)) send_error_and_kill_app(int sw) {
monero_io_discard(1);
monero_io_insert_u16(sw);
monero_io_do(IO_RETURN_AFTER_TX);
memset(&G_monero_vstate, 0, sizeof(G_monero_vstate));
Expand Down
1 change: 0 additions & 1 deletion src/monero_ux_nano.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ void ui_menu_pubaddr_display(unsigned int value) {
}

static void exit(void) {
memset(&G_monero_vstate, 0, sizeof(G_monero_vstate));
app_exit();
}

Expand Down
1 change: 0 additions & 1 deletion src/monero_ux_stax_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ static void update_account(void) {
}

static void exit(void) {
memset(&G_monero_vstate, 0, sizeof(G_monero_vstate));
app_exit();
}

Expand Down

0 comments on commit e759163

Please sign in to comment.