Skip to content

Commit

Permalink
Remove unnecessary breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed Aug 18, 2024
1 parent 1113b64 commit 8f73bc4
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/config_gram.y
Original file line number Diff line number Diff line change
Expand Up @@ -1178,22 +1178,21 @@ static int assign_pin_list(int invert) {

static int which_opcode(TOKEN *opcode) {
switch(opcode->primary) {
case K_READ: return AVR_OP_READ; break;
case K_WRITE: return AVR_OP_WRITE; break;
case K_READ_LO: return AVR_OP_READ_LO; break;
case K_READ_HI: return AVR_OP_READ_HI; break;
case K_WRITE_LO: return AVR_OP_WRITE_LO; break;
case K_WRITE_HI: return AVR_OP_WRITE_HI; break;
case K_LOADPAGE_LO: return AVR_OP_LOADPAGE_LO; break;
case K_LOADPAGE_HI: return AVR_OP_LOADPAGE_HI; break;
case K_LOAD_EXT_ADDR: return AVR_OP_LOAD_EXT_ADDR; break;
case K_WRITEPAGE: return AVR_OP_WRITEPAGE; break;
case K_CHIP_ERASE: return AVR_OP_CHIP_ERASE; break;
case K_PGM_ENABLE: return AVR_OP_PGM_ENABLE; break;
case K_READ: return AVR_OP_READ;
case K_WRITE: return AVR_OP_WRITE;
case K_READ_LO: return AVR_OP_READ_LO;
case K_READ_HI: return AVR_OP_READ_HI;
case K_WRITE_LO: return AVR_OP_WRITE_LO;
case K_WRITE_HI: return AVR_OP_WRITE_HI;
case K_LOADPAGE_LO: return AVR_OP_LOADPAGE_LO;
case K_LOADPAGE_HI: return AVR_OP_LOADPAGE_HI;
case K_LOAD_EXT_ADDR: return AVR_OP_LOAD_EXT_ADDR;
case K_WRITEPAGE: return AVR_OP_WRITEPAGE;
case K_CHIP_ERASE: return AVR_OP_CHIP_ERASE;
case K_PGM_ENABLE: return AVR_OP_PGM_ENABLE;
default:
yyerror("invalid opcode");
return -1;
break;
}
}

Expand Down

0 comments on commit 8f73bc4

Please sign in to comment.