@@ -2492,8 +2492,9 @@ int ethtool_profile_put(struct nlmsghdr *nlh, unsigned int attr_type,
2492
2492
struct nlattr *nest;
2493
2493
2494
2494
nest = ynl_attr_nest_start (nlh, attr_type);
2495
- for (unsigned int i = 0 ; i < obj.irq_moderation .size (); i++)
2495
+ for (unsigned int i = 0 ; i < obj.irq_moderation .size (); i++) {
2496
2496
ethtool_irq_moderation_put (nlh, ETHTOOL_A_PROFILE_IRQ_MODERATION, obj.irq_moderation [i]);
2497
+ }
2497
2498
ynl_attr_nest_end (nlh, nest);
2498
2499
2499
2500
return 0 ;
@@ -2652,8 +2653,9 @@ int ethtool_bitset_bits_put(struct nlmsghdr *nlh, unsigned int attr_type,
2652
2653
struct nlattr *nest;
2653
2654
2654
2655
nest = ynl_attr_nest_start (nlh, attr_type);
2655
- for (unsigned int i = 0 ; i < obj.bit .size (); i++)
2656
+ for (unsigned int i = 0 ; i < obj.bit .size (); i++) {
2656
2657
ethtool_bitset_bit_put (nlh, ETHTOOL_A_BITSET_BITS_BIT, obj.bit [i]);
2658
+ }
2657
2659
ynl_attr_nest_end (nlh, nest);
2658
2660
2659
2661
return 0 ;
@@ -2706,8 +2708,9 @@ int ethtool_strings_put(struct nlmsghdr *nlh, unsigned int attr_type,
2706
2708
struct nlattr *nest;
2707
2709
2708
2710
nest = ynl_attr_nest_start (nlh, attr_type);
2709
- for (unsigned int i = 0 ; i < obj.string .size (); i++)
2711
+ for (unsigned int i = 0 ; i < obj.string .size (); i++) {
2710
2712
ethtool_string_put (nlh, ETHTOOL_A_STRINGS_STRING, obj.string [i]);
2713
+ }
2711
2714
ynl_attr_nest_end (nlh, nest);
2712
2715
2713
2716
return 0 ;
@@ -2843,8 +2846,9 @@ int ethtool_stringset_put(struct nlmsghdr *nlh, unsigned int attr_type,
2843
2846
if (obj.count .has_value ()) {
2844
2847
ynl_attr_put_u32 (nlh, ETHTOOL_A_STRINGSET_COUNT, obj.count .value ());
2845
2848
}
2846
- for (unsigned int i = 0 ; i < obj.strings .size (); i++)
2849
+ for (unsigned int i = 0 ; i < obj.strings .size (); i++) {
2847
2850
ethtool_strings_put (nlh, ETHTOOL_A_STRINGSET_STRINGS, obj.strings [i]);
2851
+ }
2848
2852
ynl_attr_nest_end (nlh, nest);
2849
2853
2850
2854
return 0 ;
@@ -2963,8 +2967,9 @@ int ethtool_stringsets_put(struct nlmsghdr *nlh, unsigned int attr_type,
2963
2967
struct nlattr *nest;
2964
2968
2965
2969
nest = ynl_attr_nest_start (nlh, attr_type);
2966
- for (unsigned int i = 0 ; i < obj.stringset .size (); i++)
2970
+ for (unsigned int i = 0 ; i < obj.stringset .size (); i++) {
2967
2971
ethtool_stringset_put (nlh, ETHTOOL_A_STRINGSETS_STRINGSET, obj.stringset [i]);
2972
+ }
2968
2973
ynl_attr_nest_end (nlh, nest);
2969
2974
2970
2975
return 0 ;
0 commit comments