From: Rafael J. Wysocki Date: Thu, 19 Jul 2007 08:47:35 +0000 (-0700) Subject: Freezer: remove redundant check in try_to_freeze_tasks X-Git-Tag: v2.6.23-rc1~456 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2cf7d87d804c66e063829d5ca739053e901dc15;p=pandora-kernel.git Freezer: remove redundant check in try_to_freeze_tasks We don't need to check if todo is positive before calling time_after() in try_to_freeze_tasks(), because if todo is zero at this point, the loop will be broken anyway due to the while () condition being false. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Cc: Gautham R Shenoy Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed