summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/pit8253.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-01-22 10:21:52 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-01-22 10:21:52 +0000
commit325dadfdc0d0cd2afcad8d04e8c973793f4866fc (patch)
treebc88745544df69ba4eb523b8ac9f511168f9b193 /src/emu/machine/pit8253.c
parent58af175636d898f6bda49c9e119c9f4bce373ed0 (diff)
On Mon, Jan 19, 2009 at 02:48:05PM +0100, Olivier Galibert wrote:
> On Mon, Jan 19, 2009 at 05:37:35AM -0800, R. Belmont wrote: > > My mistake. I thought you were suggesting that we should actually > > somehow handle malloc failures. Given that aborting is an OK way to > > express failure, I'd suggest the return values be changed to DEFER > > and DONT_DEFER to eliminate the conceptual imbalance of OK/DEFER. > > That's where comes the fact that we have 130 OK/DONT_DEFER and 1 > DEFER. It makes me think that the exceptional DEFER case should be > handled by an exceptional function call. > > I know, code talks, but I'm at work right now :-) Here we go. OG.
Diffstat (limited to 'src/emu/machine/pit8253.c')
-rw-r--r--src/emu/machine/pit8253.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index a09714de099..8493b92bdf4 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -1038,7 +1038,7 @@ void pit8253_set_clock_signal(const device_config *device, int timerno, int stat
}
-static device_start_err common_start( const device_config *device, int device_type ) {
+static void common_start( const device_config *device, int device_type ) {
pit8253_t *pit8253 = get_safe_token(device);
int timerno;
@@ -1077,18 +1077,16 @@ static device_start_err common_start( const device_config *device, int device_ty
state_save_register_device_item(device, timerno, timer->last_updated.attoseconds);
state_save_register_device_item(device, timerno, timer->clock);
}
-
- return DEVICE_START_OK;
}
static DEVICE_START( pit8253 ) {
- return common_start( device, TYPE_PIT8253 );
+ common_start( device, TYPE_PIT8253 );
}
static DEVICE_START( pit8254 ) {
- return common_start( device, TYPE_PIT8254 );
+ common_start( device, TYPE_PIT8254 );
}