Another round of sonarlint work

This commit is contained in:
Jasmine Iwanek
2023-06-28 13:46:28 -04:00
parent b750471e5c
commit 1116aadb6f
135 changed files with 2425 additions and 1355 deletions

View File

@@ -34,10 +34,12 @@
#include <86box/fdd.h>
#include <86box/fdc.h>
#include <86box/sio.h>
#include <86box/plat_unused.h>
typedef struct {
uint8_t tries,
regs[29], gpio[2];
typedef struct pc87306_t {
uint8_t tries;
uint8_t regs[29];
uint8_t gpio[2];
int cur_reg;
fdc_t *fdc;
serial_t *uart[2];
@@ -112,6 +114,9 @@ lpt1_handler(pc87306_t *dev)
lpt_port = 0x000;
lpt_irq = 0xff;
break;
default:
break;
}
if (dev->regs[0x1b] & 0x10)
@@ -165,6 +170,9 @@ serial_handler(pc87306_t *dev, int uart)
case 3:
serial_setup(dev->uart[uart], 0x220, irq);
break;
default:
break;
}
break;
case 3:
@@ -181,8 +189,14 @@ serial_handler(pc87306_t *dev, int uart)
case 3:
serial_setup(dev->uart[uart], 0x228, irq);
break;
default:
break;
}
break;
default:
break;
}
}
@@ -324,6 +338,9 @@ pc87306_write(uint16_t port, uint8_t val, void *priv)
serial_handler(dev, 1);
}
break;
default:
break;
}
}
@@ -392,7 +409,7 @@ pc87306_close(void *priv)
}
static void *
pc87306_init(const device_t *info)
pc87306_init(UNUSED(const device_t *info))
{
pc87306_t *dev = (pc87306_t *) malloc(sizeof(pc87306_t));
memset(dev, 0, sizeof(pc87306_t));