Commit 21e289c
macvlan: Use 'hash' iterators to simplify code
[ Upstream commit bb23ffa1015cb57e0c9ec3c6135275b38d66a780 ]
Use 'hash_for_each_rcu' and 'hash_for_each_safe' instead of hand writing
them. This saves some lines of code, reduce indentation and improve
readability.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 7470a7a63dc1 ("macvlan: fix possible UAF in macvlan_forward_source()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Ulrich Hecht <uli@kernel.org>1 parent 981eb73 commit 21e289c
1 file changed
Lines changed: 18 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
280 | 279 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
284 | 283 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
290 | 288 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
295 | 292 | | |
296 | 293 | | |
297 | 294 | | |
| |||
381 | 378 | | |
382 | 379 | | |
383 | 380 | | |
| 381 | + | |
| 382 | + | |
384 | 383 | | |
385 | 384 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
391 | 388 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | 389 | | |
399 | 390 | | |
400 | 391 | | |
| |||
0 commit comments