Some code smell fixes from sonarlint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user