From: Oleg Nesterov Date: Wed, 26 May 2010 21:43:05 +0000 (-0700) Subject: coredump: factor out the not-ispipe file checks X-Git-Tag: v2.6.35-rc1~175 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c713541125002b8bc9e681af3b09118e771e2d8a;p=pandora-kernel.git coredump: factor out the not-ispipe file checks do_coredump() does a lot of file checks after it opens the file or calls usermode helper. But all of these checks are only needed in !ispipe case. Move this code into the "else" branch and kill the ugly repetitive ispipe checks. Signed-off-by: Oleg Nesterov Cc: David Howells Cc: Neil Horman Cc: Roland McGrath Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed