summaryrefslogtreecommitdiffstats
path: root/sys/dev/idt
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-12-24 18:59:20 +0000
committeralfred <alfred@FreeBSD.org>2003-12-24 18:59:20 +0000
commit48297db6e9b2dad9fa46d93b470e159d686ca329 (patch)
treea99dafd2097808aa7bc3e3ff843443c5f6e40a92 /sys/dev/idt
parent354c5cd6a5825c199db3c092ac3388d231b16941 (diff)
downloadFreeBSD-src-48297db6e9b2dad9fa46d93b470e159d686ca329.zip
FreeBSD-src-48297db6e9b2dad9fa46d93b470e159d686ca329.tar.gz
NULL -> 0
Diffstat (limited to 'sys/dev/idt')
-rw-r--r--sys/dev/idt/idt.c8
-rw-r--r--sys/dev/idt/idt_harp.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/idt/idt.c b/sys/dev/idt/idt.c
index b816bda..1b0de99 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 96efbb2..3a2f27b 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++) {
OpenPOWER on IntegriCloud