Commit 1662b6c
committed
mm/slub: remove freelist_dereference()
freelist_dereference() is a one-liner only used from get_freepointer().
Remove it and make get_freepointer() call freelist_ptr_decode()
directly to make the code easier to follow.
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Kees Cook <keescook@chromium.org>1 parent b06952c commit 1662b6c
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 400 | | |
409 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
410 | 405 | | |
411 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
412 | 409 | | |
413 | 410 | | |
414 | 411 | | |
| |||
0 commit comments