malloc to calloc

This commit is contained in:
Jasmine Iwanek
2025-01-07 00:42:06 -05:00
parent f599e72114
commit 4e6f29a7d5
183 changed files with 245 additions and 493 deletions

View File

@@ -472,14 +472,10 @@ t228_feedb(void *priv)
static void *
t128_init(const device_t *info)
{
t128_t *t128;
ncr_t *ncr;
t128_t *t128 = calloc(1, sizeof(t128_t));
ncr_t *ncr = &t128->ncr;
scsi_bus_t *scsi_bus;
t128 = malloc(sizeof(t128_t));
memset(t128, 0x00, sizeof(t128_t));
ncr = &t128->ncr;
ncr->bus = scsi_get_bus();
scsi_bus = &ncr->scsibus;