mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[settings] Eliminate settings "tag magic"
Create an explicit concept of "settings scope" and eliminate the magic values used for numerical setting tags. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -224,7 +224,7 @@ static int guestinfo_net_probe ( struct net_device *netdev ) {
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc;
|
||||
}
|
||||
settings_init ( settings, &guestinfo_settings_operations, NULL, 0 );
|
||||
settings_init ( settings, &guestinfo_settings_operations, NULL, NULL );
|
||||
|
||||
/* Register settings */
|
||||
if ( ( rc = register_settings ( settings, netdev_settings ( netdev ),
|
||||
|
||||
Reference in New Issue
Block a user