Fix coding style of "struct ctl_table" and "struct ctl_table_header" to have inline braces. Besides the wide use of this proposed cose style, this change helps to find at a glance the struct definition when navigating the code.
Unified · Split
| @@ -120,8 +120,7 @@ static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) · 119 unmodified lines | |||
| 120 | struct ctl_table_poll name = __CTL_TABLE_POLL_INITIALIZER(name) | 120 | struct ctl_table_poll name = __CTL_TABLE_POLL_INITIALIZER(name) |
| 121 | 121 | ||
| 122 | /* A sysctl table is an array of struct ctl_table: */ | 122 | /* A sysctl table is an array of struct ctl_table: */ |
| 123 | struct ctl_table | 123 | struct ctl_table { |
| 124 | { | ||
| 125 | const char *procname; /* Text ID for /proc/sys, or zero */ | 124 | const char *procname; /* Text ID for /proc/sys, or zero */ |
| 126 | void *data; | 125 | void *data; |
| 127 | int maxlen; | 126 | int maxlen; |
| @@ -140,8 +139,7 @@ struct ctl_node { · 12 unmodified lines | |||
| 140 | 139 | ||
| 141 | /* struct ctl_table_header is used to maintain dynamic lists of | 140 | /* struct ctl_table_header is used to maintain dynamic lists of |
| 142 | struct ctl_table trees. */ | 141 | struct ctl_table trees. */ |
| 143 | struct ctl_table_header | 142 | struct ctl_table_header { |
| 144 | { | ||
| 145 | union { | 143 | union { |
| 146 | struct { | 144 | struct { |
| 147 | struct ctl_table *ctl_table; | 145 | struct ctl_table *ctl_table; |