aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-02-11 07:50:03 +0000
committerWarner Losh <imp@FreeBSD.org>2005-02-11 07:50:03 +0000
commitd74c5672546fcb9e0eee7e2042577a9e39e27661 (patch)
tree06644b0a6285bfac32480fa07f4b3e0f1a17227d /sys/dev/ed
parentafdeb6a183254c103a6543aeae3cb6611ab2cf7b (diff)
Notes
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index f72a19fd9274..f6a2695cbbef 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -170,9 +170,8 @@ ed_alloc_port(device_t dev, int rid, int size)
sc->port_res = res;
sc->port_used = size;
return (0);
- } else {
- return (ENOENT);
}
+ return (ENOENT);
}
/*
@@ -191,9 +190,8 @@ ed_alloc_memory(device_t dev, int rid, int size)
sc->mem_res = res;
sc->mem_used = size;
return (0);
- } else {
- return (ENOENT);
}
+ return (ENOENT);
}
/*
@@ -210,9 +208,8 @@ ed_alloc_irq(device_t dev, int rid, int flags)
sc->irq_rid = rid;
sc->irq_res = res;
return (0);
- } else {
- return (ENOENT);
}
+ return (ENOENT);
}
/*