mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 06:22:01 +03:00
[settings] Apply settings block name in register_settings()
Pass the settings block name as a parameter to register_settings(), rather than defining it with settings_init() (and then possibly changing it by directly manipulating settings->name). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -422,7 +422,7 @@ int register_netdev ( struct net_device *netdev ) {
|
||||
|
||||
/* Register per-netdev configuration settings */
|
||||
if ( ( rc = register_settings ( netdev_settings ( netdev ),
|
||||
NULL ) ) != 0 ) {
|
||||
NULL, netdev->name ) ) != 0 ) {
|
||||
DBGC ( netdev, "NETDEV %s could not register settings: %s\n",
|
||||
netdev->name, strerror ( rc ) );
|
||||
goto err_register_settings;
|
||||
|
||||
Reference in New Issue
Block a user