This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit 55bb7eb
committed
sysctl: Replace nr_entries with ctl_table_size in new_links
The number of ctl_table entries (nr_entries) calculation was previously
based on the ctl_table_size and the sentinel element. Since the
sentinels have been removed, we remove the calculation and just use the
ctl_table_size from the ctl_table_header.
Signed-off-by: Joel Granados <j.granados@samsung.com>1 parent d7a76ec commit 55bb7eb
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | | - | |
| 1169 | + | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
1173 | 1172 | | |
1174 | | - | |
1175 | 1173 | | |
1176 | 1174 | | |
1177 | 1175 | | |
1178 | 1176 | | |
1179 | | - | |
1180 | | - | |
| 1177 | + | |
| 1178 | + | |
1181 | 1179 | | |
1182 | 1180 | | |
1183 | 1181 | | |
1184 | 1182 | | |
1185 | 1183 | | |
1186 | 1184 | | |
1187 | 1185 | | |
1188 | | - | |
1189 | | - | |
| 1186 | + | |
| 1187 | + | |
1190 | 1188 | | |
1191 | 1189 | | |
1192 | 1190 | | |
| |||
1200 | 1198 | | |
1201 | 1199 | | |
1202 | 1200 | | |
1203 | | - | |
| 1201 | + | |
1204 | 1202 | | |
1205 | 1203 | | |
1206 | 1204 | | |
| |||
0 commit comments