From: NeilBrown Date: Wed, 9 May 2007 09:34:55 +0000 (-0700) Subject: knfsd: simplify a 'while' condition in svcsock.c X-Git-Tag: v2.6.22-rc1~193 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05ed690efbb28b54af79f97af8c9705e82a6fbd7;p=pandora-kernel.git knfsd: simplify a 'while' condition in svcsock.c This while loop has an overly complex condition, which performs a couple of assignments. This hurts readability. We don't really need a loop at all. We can just return -EAGAIN and (providing we set SK_DATA), the function will be called again. So discard the loop, make the complex conditional become a few clear function calls, and hopefully improve readability. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed