mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2e29bd0478
commit
660f11be54
20 changed files with 59 additions and 58 deletions
2
hw/ide.c
2
hw/ide.c
|
@ -4411,7 +4411,7 @@ PCMCIACardState *dscm1xxxx_init(BlockDriverState *bdrv)
|
|||
md->card.cis = dscm1xxxx_cis;
|
||||
md->card.cis_len = sizeof(dscm1xxxx_cis);
|
||||
|
||||
ide_init2(md->ide, bdrv, 0, qemu_allocate_irqs(md_set_irq, md, 1)[0]);
|
||||
ide_init2(md->ide, bdrv, NULL, qemu_allocate_irqs(md_set_irq, md, 1)[0]);
|
||||
md->ide->is_cf = 1;
|
||||
md->ide->mdata_size = METADATA_SIZE;
|
||||
md->ide->mdata_storage = (uint8_t *) qemu_mallocz(METADATA_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue