diff options
| author | Akinobu Mita <[email protected]> | 2006-06-26 07:24:39 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-06-26 16:58:17 +0000 |
| commit | a7addcea6ac7c0e9733a48cda06ca0880f116a48 (patch) | |
| tree | 5d18b98798c98dd2c044f4a9ed9c7b372c599a9c /arch/m68k/mm/memory.c | |
| parent | [PATCH] use list_add_tail() instead of list_add() (diff) | |
| download | kernel-a7addcea6ac7c0e9733a48cda06ca0880f116a48.tar.gz kernel-a7addcea6ac7c0e9733a48cda06ca0880f116a48.zip | |
[PATCH] arch: use list_move()
This patch converts the combination of list_del(A) and list_add(A, B) to
list_move(A, B) under arch/.
Cc: Geert Uytterhoeven <[email protected]>
Cc: "David S. Miller" <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/m68k/mm/memory.c')
| -rw-r--r-- | arch/m68k/mm/memory.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/m68k/mm/memory.c b/arch/m68k/mm/memory.c index d6d582a5abb0..a226668f20c3 100644 --- a/arch/m68k/mm/memory.c +++ b/arch/m68k/mm/memory.c @@ -94,8 +94,7 @@ pmd_t *get_pointer_table (void) PD_MARKBITS(dp) = mask & ~tmp; if (!PD_MARKBITS(dp)) { /* move to end of list */ - list_del(dp); - list_add_tail(dp, &ptable_list); + list_move_tail(dp, &ptable_list); } return (pmd_t *) (page_address(PD_PAGE(dp)) + off); } @@ -123,8 +122,7 @@ int free_pointer_table (pmd_t *ptable) * move this descriptor to the front of the list, since * it has one or more free tables. */ - list_del(dp); - list_add(dp, &ptable_list); + list_move(dp, &ptable_list); } return 0; } |
