diff options
| author | Michael Brown | 2007-01-13 17:55:57 +0100 |
|---|---|---|
| committer | Michael Brown | 2007-01-13 17:55:57 +0100 |
| commit | 4b7706188180ef237560b892c7271a898384ac92 (patch) | |
| tree | d1fb6b0fc2ce2fb24bff6dadac149d84a427baae /src/arch/i386/drivers/net/undinet.c | |
| parent | When an UNDI API call fails, print everything there is to know about it. (diff) | |
| download | ipxe-4b7706188180ef237560b892c7271a898384ac92.tar.gz ipxe-4b7706188180ef237560b892c7271a898384ac92.tar.xz ipxe-4b7706188180ef237560b892c7271a898384ac92.zip | |
Pick up the return status code from the correct place now that we
don't overwrite the parameter block until *after* the debug code.
Diffstat (limited to 'src/arch/i386/drivers/net/undinet.c')
| -rw-r--r-- | src/arch/i386/drivers/net/undinet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/arch/i386/drivers/net/undinet.c b/src/arch/i386/drivers/net/undinet.c index 822afa7b7..b5100ce6b 100644 --- a/src/arch/i386/drivers/net/undinet.c +++ b/src/arch/i386/drivers/net/undinet.c @@ -147,7 +147,6 @@ static SEGOFF16_t __data16 ( undinet_entry_point ); */ static int undinet_call ( struct undi_nic *undinic, unsigned int function, void *params, size_t params_len ) { - union u_PXENV_ANY *pxenv_any = params; PXENV_EXIT_t exit; int discard_b, discard_D; int rc; @@ -188,7 +187,7 @@ static int undinet_call ( struct undi_nic *undinic, unsigned int function, if ( exit == PXENV_EXIT_SUCCESS ) { rc = 0; } else { - rc = -pxenv_any->Status; + rc = -undinet_params.Status; /* Paranoia; don't return success for the combination * of PXENV_EXIT_FAILURE but PXENV_STATUS_SUCCESS */ |
