mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
943b456e6a
commit
b093da40fb
1 changed files with 2 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue