From: Pavel Machek The following patch removes the unnecessary function does_collide_order(). This function is no longer necessary, as currently there are only 0-order allocations in swsusp, and the use of it is confusing. Signed-off-by: Rafael J. Wysocki Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton --- kernel/power/swsusp.c | 19 ++----------------- 1 files changed, 2 insertions(+), 17 deletions(-) diff -puN kernel/power/swsusp.c~swsusp-kill-unneccessary-does_collide_order kernel/power/swsusp.c --- 25/kernel/power/swsusp.c~swsusp-kill-unneccessary-does_collide_order 2005-05-02 18:59:25.000000000 -0700 +++ 25-akpm/kernel/power/swsusp.c 2005-05-02 18:59:25.000000000 -0700 @@ -929,21 +929,6 @@ int swsusp_resume(void) return error; } -/* More restore stuff */ - -/* - * Returns true if given address/order collides with any orig_address - */ -static int does_collide_order(unsigned long addr, int order) -{ - int i; - - for (i=0; i < (1<