From: Paolo 'Blaisorblade' Giarrusso Date: Sat, 3 Sep 2005 22:54:55 +0000 (-0700) Subject: [PATCH] shmem_populate: avoid an useless check, and some comments X-Git-Tag: v2.6.14-rc1~963 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d44ed4f86892e350f4b16a3489b7e7c1a9bb7ead;p=pandora-kernel.git [PATCH] shmem_populate: avoid an useless check, and some comments Either shmem_getpage returns a failure, or it found a page, or it was told it couldn't do any I/O. So it's useless to check nonblock in the else branch. We could add a BUG() there but I preferred to comment the offending function. This was taken out from one Ingo Molnar's old patch I'm resurrecting. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Cc: Ingo Molnar Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed