diff options
author | imp <imp@FreeBSD.org> | 2005-02-22 03:37:04 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-02-22 03:37:04 +0000 |
commit | 0e9080f46a0fbbbf34799f9099d9df05a7ea3370 (patch) | |
tree | 24eda414556b47f95ecfa87de11bb927f8ea3587 | |
parent | a7c680873bad512efba40bd27c85b62860ce628d (diff) | |
download | FreeBSD-src-0e9080f46a0fbbbf34799f9099d9df05a7ea3370.zip FreeBSD-src-0e9080f46a0fbbbf34799f9099d9df05a7ea3370.tar.gz |
Minor optimization of calling enable_16bit. We always have to call it
and error is going to be right for both forks of the if, so just
return that.
-rw-r--r-- | sys/dev/ed/if_ed_wd80x3.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/ed/if_ed_wd80x3.c b/sys/dev/ed/if_ed_wd80x3.c index 0494358..fe23c87 100644 --- a/sys/dev/ed/if_ed_wd80x3.c +++ b/sys/dev/ed/if_ed_wd80x3.c @@ -418,12 +418,6 @@ ed_probe_WD80x3_generic(device_t dev, int flags, uint16_t *intr_vals[]) sc->cr_proto = 0; } - error = ed_clear_memory(dev); - if (error) { - ed_disable_16bit_access(sc); - return (error); - } - /* * Disable 16bit access to shared memory - we leave it * disabled so that 1) machines reboot properly when the board @@ -432,8 +426,9 @@ ed_probe_WD80x3_generic(device_t dev, int flags, uint16_t *intr_vals[]) * shared memory. and 2) so that other 8 bit devices with * shared memory can be used in this 128k region, too. */ + error = ed_clear_memory(dev); ed_disable_16bit_access(sc); - return (0); + return (error); } int |