diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2003-12-24 18:59:20 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2003-12-24 18:59:20 +0000 |
commit | 87dddecb1f8346d93be55eb2bf8c147b2fc12f48 (patch) | |
tree | a99dafd2097808aa7bc3e3ff843443c5f6e40a92 | |
parent | 7e2a61e17d8cab6d629e0424fe8c33bf63bbe6c0 (diff) | |
download | src-87dddecb1f8346d93be55eb2bf8c147b2fc12f48.tar.gz src-87dddecb1f8346d93be55eb2bf8c147b2fc12f48.zip |
NULL -> 0
Notes
Notes:
svn path=/head/; revision=123815
-rw-r--r-- | sys/dev/idt/idt.c | 8 | ||||
-rw-r--r-- | sys/dev/idt/idt_harp.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/idt/idt.c b/sys/dev/idt/idt.c index b816bdacf0f7..1b0de99af46c 100644 --- a/sys/dev/idt/idt.c +++ b/sys/dev/idt/idt.c @@ -673,7 +673,7 @@ nicstar_init(nicstar_reg_t * const idt) /* allocate space for TSQ, RSQ, SCD for VBR,ABR, UBR */ idt->fixbuf = vm_page_alloc_contig(NICSTAR_FIXPAGES * PAGE_SIZE, 0x100000, 0xffffffff, 0x2000); - if (idt->fixbuf == NULL) + if (idt->fixbuf == 0) return; /* no space card disabled */ if (idt_buffer_init(idt)) /* allocate large buffers */ @@ -815,11 +815,11 @@ freemem: void idt_release_mem(IDT * idt) { - if (idt->fixbuf != NULL) + if (idt->fixbuf != 0) kmem_free(kernel_map, idt->fixbuf, (NICSTAR_FIXPAGES * PAGE_SIZE)); - if (idt->cbr_base != NULL) + if (idt->cbr_base != 0) kmem_free(kernel_map, (vm_offset_t)idt->cbr_base, idt->cbr_size); printf("%s() is NOT SAFE!\n", __func__); @@ -1430,7 +1430,7 @@ idt_queue_init(IDT * idt) idt->cbr_size = IDT_MAX_CBRQUEUE * 16 * 64; idt->cbr_base = idt_malloc_contig(idt->cbr_size / PAGE_SIZE); scqbase = idt->cbr_base; - if (scqbase == NULL) + if (scqbase == 0) return (1); idt->cbr_freect = idt->cbr_size / (16 * 64); diff --git a/sys/dev/idt/idt_harp.c b/sys/dev/idt/idt_harp.c index 96efbb21dfd5..3a2f27be685e 100644 --- a/sys/dev/idt/idt_harp.c +++ b/sys/dev/idt/idt_harp.c @@ -347,7 +347,7 @@ idt_harp_init(nicstar_reg_t *idt) * points to start of EEPROM and includes all the device registers * in the lower 2 Megabytes. */ - idt->iu_config.ac_ram = NULL; + idt->iu_config.ac_ram = 0; idt->iu_config.ac_ramsize = 0; for (i = 0; i < 6; i++) { |