Some code smell fixes from sonarlint
This commit is contained in:
@@ -74,14 +74,16 @@
|
||||
#define CTRL_RESET 0xff /* this resets the board */
|
||||
#define BUG_DATA 1
|
||||
|
||||
static uint8_t bug_ctrl, /* control register */
|
||||
bug_data, /* data register */
|
||||
bug_ledr, bug_ledg, /* RED and GREEN LEDs */
|
||||
bug_seg1, bug_seg2, /* LEFT and RIGHT 7SEG displays */
|
||||
bug_spcfg; /* serial port configuration */
|
||||
static uint8_t bug_ctrl; /* control register */
|
||||
static uint8_t bug_data; /* data register */
|
||||
static uint8_t bug_ledr; /* RED LEDs */
|
||||
static uint8_t bug_ledg; /* GREEN LEDs */
|
||||
static uint8_t bug_seg1;
|
||||
static uint8_t bug_seg2; /* LEFT and RIGHT 7SEG displays */
|
||||
static uint8_t bug_spcfg; /* serial port configuration */
|
||||
#define FIFO_LEN 256
|
||||
static uint8_t bug_buff[FIFO_LEN], /* serial port data buffer */
|
||||
*bug_bptr;
|
||||
static uint8_t bug_buff[FIFO_LEN]; /* serial port data buffer */
|
||||
static uint8_t *bug_bptr;
|
||||
#define UISTR_LEN 24
|
||||
static char bug_str[UISTR_LEN]; /* UI output string */
|
||||
|
||||
@@ -312,7 +314,7 @@ bug_read(uint16_t port, void *priv)
|
||||
break;
|
||||
}
|
||||
|
||||
return (ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Initialize the ISA BusBugger emulator. */
|
||||
|
||||
Reference in New Issue
Block a user