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.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -120,8 +120,7 @@ static inline void *proc_sys_poll_event(struct ctl_table_poll *poll) · 119 unmodified lines | ||
| 120 | 120 | struct ctl_table_poll name = __CTL_TABLE_POLL_INITIALIZER(name) |
| 121 | 121 | |
| 122 | 122 | /* A sysctl table is an array of struct ctl_table: */ |
| 123 | −struct ctl_table | |
| 124 | −{ | |
| 123 | +struct ctl_table { | |
| 125 | 124 | const char *procname; /* Text ID for /proc/sys, or zero */ |
| 126 | 125 | void *data; |
| 127 | 126 | int maxlen; |
| @@ -140,8 +139,7 @@ struct ctl_node { · 12 unmodified lines | ||
| 140 | 139 | |
| 141 | 140 | /* struct ctl_table_header is used to maintain dynamic lists of |
| 142 | 141 | struct ctl_table trees. */ |
| 143 | −struct ctl_table_header | |
| 144 | −{ | |
| 142 | +struct ctl_table_header { | |
| 145 | 143 | union { |
| 146 | 144 | struct { |
| 147 | 145 | struct ctl_table *ctl_table; |