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.
This commit is contained in:
Warner Losh 2005-02-22 03:37:04 +00:00
parent 943b456e6a
commit b093da40fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142200

View File

@ -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