|
@@ -499,10 +499,10 @@ int register_settings ( struct settings *settings, struct settings *parent,
|
499
|
499
|
*/
|
500
|
500
|
void unregister_settings ( struct settings *settings ) {
|
501
|
501
|
struct settings *child;
|
502
|
|
- struct settings *tmp;
|
503
|
502
|
|
504
|
503
|
/* Unregister child settings */
|
505
|
|
- list_for_each_entry_safe ( child, tmp, &settings->children, siblings ) {
|
|
504
|
+ while ( ( child = list_first_entry ( &settings->children,
|
|
505
|
+ struct settings, siblings ) ) ) {
|
506
|
506
|
unregister_settings ( child );
|
507
|
507
|
}
|
508
|
508
|
|