Staging: android: lowmemorykiller: cleanup android low memory killer
authorDavid Rientjes <rientjes@google.com>
Mon, 11 May 2009 22:45:12 +0000 (15:45 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 19 Jun 2009 18:00:52 +0000 (11:00 -0700)
commit34006e11ee406daa98aaf685d2de80c70e68decf
tree005c31faa699a5bc4123103cbeb809dce2f3f7a6
parent31d59a4198f3f07da8250dfb5b698eacfaf612e5
Staging: android: lowmemorykiller: cleanup android low memory killer

Clean up the code in lowmem_shrink() for the Android low memory killer so
that it follows the kernel coding style.

It's unnecessary to check for p->oomkilladj >= min_adj if the selected
task's oomkilladj score is stored since get_mm_rss() will always be
greater than zero.

Cc: San Mehat <san@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/android/lowmemorykiller.c