diff options
author | Michael Brown | 2011-01-27 21:35:48 +0100 |
---|---|---|
committer | Michael Brown | 2011-01-27 21:40:26 +0100 |
commit | 962cada830e9b0ce7049a59bef4c33ab01c6161e (patch) | |
tree | 057160b6a5f46e3e099166102f3a91b393d35103 /src/drivers/net/efi/snponly.c | |
parent | [xfer] Expose xfer_uri_opener() (diff) | |
download | ipxe-962cada830e9b0ce7049a59bef4c33ab01c6161e.tar.gz ipxe-962cada830e9b0ce7049a59bef4c33ab01c6161e.tar.xz ipxe-962cada830e9b0ce7049a59bef4c33ab01c6161e.zip |
[init] Remove concept of "shutdown exit flags"
Remove the concept of shutdown exit flags, and replace it with a
counter used to keep track of exposed interfaces that require devices
to remain active.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/efi/snponly.c')
-rw-r--r-- | src/drivers/net/efi/snponly.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/net/efi/snponly.c b/src/drivers/net/efi/snponly.c index 435ed4fb..6fcc54a0 100644 --- a/src/drivers/net/efi/snponly.c +++ b/src/drivers/net/efi/snponly.c @@ -114,13 +114,13 @@ struct root_device snp_root_device __root_device = { /** * Prepare for exit * - * @v flags Shutdown flags + * @v booting System is shutting down for OS boot */ -static void snponly_shutdown ( int flags ) { +static void snponly_shutdown ( int booting ) { /* If we are shutting down to boot an OS, make sure the SNP does not * stay active. */ - if ( flags & SHUTDOWN_BOOT ) + if ( booting ) snponly_dev.removal_state = EfiSimpleNetworkStopped; } |