summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>2000-06-10 19:48:19 +0000
committeralex <alex@FreeBSD.org>2000-06-10 19:48:19 +0000
commit39f3a53286881277845bcef98bf9662dc97ea558 (patch)
tree8c636450c3e1e00a21607e082a1b1d749fb874de /sys/alpha
parentdf14840251663a96143ad95dcc8a297fc125edd6 (diff)
downloadFreeBSD-src-39f3a53286881277845bcef98bf9662dc97ea558.zip
FreeBSD-src-39f3a53286881277845bcef98bf9662dc97ea558.tar.gz
Avoid useless check against NULL, since we assign the checked value
to the var anyways. Reviewed by: bde
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/interrupt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/alpha/alpha/interrupt.c b/sys/alpha/alpha/interrupt.c
index db6f542..deedefe 100644
--- a/sys/alpha/alpha/interrupt.c
+++ b/sys/alpha/alpha/interrupt.c
@@ -318,10 +318,7 @@ int alpha_setup_intr(int vector, driver_intr_t *intr, void *arg,
i->vector = vector;
i->intr = intr;
i->arg = arg;
- if (cntp)
- i->cntp = cntp;
- else
- i->cntp = NULL;
+ i->cntp = cntp;
s = splhigh();
LIST_INSERT_HEAD(&alpha_intr_hash[h], i, list);
OpenPOWER on IntegriCloud