Some code smell fixes from sonarlint

This commit is contained in:
Jasmine Iwanek
2023-05-11 03:02:36 -04:00
parent d314255362
commit 6c1e4a8e2c
137 changed files with 3354 additions and 2900 deletions

View File

@@ -79,7 +79,7 @@ port_61_read_simple(uint16_t port, void *priv)
if (ppispeakon)
ret |= 0x20;
return (ret);
return ret;
}
static uint8_t
@@ -102,7 +102,7 @@ port_61_read(uint16_t port, void *priv)
if (dev->flags & PORT_6X_TURBO)
ret = (ret & 0xfb) | (xi8088_turbo_get() ? 0x04 : 0x00);
return (ret);
return ret;
}
static uint8_t
@@ -114,8 +114,8 @@ port_62_read(uint16_t port, void *priv)
ret = 0x00;
if (ppi.pb & 0x8) {
/* Switches 4, 5 - floppy drives (number) */
int i, fdd_count = 0;
for (i = 0; i < FDD_NUM; i++) {
int fdd_count = 0;
for (uint8_t i = 0; i < FDD_NUM; i++) {
if (fdd_get_flags(i))
fdd_count++;
}
@@ -138,7 +138,7 @@ port_62_read(uint16_t port, void *priv)
ret |= 0x02;
}
return (ret);
return ret;
}
static void